refactor: Build monorepo to seperate service support (#9) #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
check-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check format | |
run: cargo fmt --all -- --check | |
- name: Check clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
check-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools | |
run: | | |
pip install ruff | |
- name: Check format | |
run: | | |
ruff format . --diff | |
- name: Check style | |
run: | | |
ruff check . | |
check-pyo3: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
packages: | |
- "opendalfs" | |
- "services/memory" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
working-directory: ${{ matrix.packages }} |