rf: Encapsulate BIDS schema loading and thread through indexer #140
Workflow file for this run
This file contains hidden or 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"] | |
| env: | |
| UV_FROZEN: true | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| pyproject-file: pyproject.toml | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Check quality | |
| run: | | |
| uv run ruff check bids2table tests | |
| uv run ruff format --check bids2table tests | |
| tests: | |
| runs-on: ubuntu-latest | |
| needs: format | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| - name: Install uv with python version | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run tests without cloudpathlib | |
| run: | | |
| uv run pytest tests | |
| - name: Run tests with cloudpathlib | |
| run: | | |
| uv run --all-extras pytest \ | |
| --junitxml=pytest.xml \ | |
| --cov-report=xml:coverage.xml \ | |
| --cov=bids2table tests | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |