Add fix_rbc_release_tr.py for the C-PAC TR bandpass bug #902
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 | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| unit: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.1.0 | |
| - run: uv sync | |
| - name: Run non-ubuntu quick tests | |
| if: matrix.os != 'ubuntu-latest' | |
| shell: bash | |
| run: > | |
| uv run pytest \ | |
| -m "unit" \ | |
| --junitxml=pytest.xml \ | |
| --cov=src \ | |
| --log-level=DEBUG \ | |
| --verbose tests | |
| - name: Run ubuntu quick tests | |
| if: matrix.os == 'ubuntu-latest' | |
| shell: bash | |
| run: > | |
| uv run pytest \ | |
| -m "not slow and not full_pipeline" \ | |
| --junitxml=pytest.xml \ | |
| --cov=src \ | |
| --cov-report=xml \ | |
| --log-level=DEBUG \ | |
| --verbose tests | |
| - name: Pytest coverage comment | |
| if: matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' | |
| uses: MishaKav/pytest-coverage-comment@v1 | |
| with: | |
| pytest-xml-coverage-path: ./coverage.xml | |
| junitxml-path: ./pytest.xml | |
| codegen: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.1.0 | |
| - run: uv sync | |
| - name: Check generated files are up-to-date | |
| run: | | |
| uv run scripts/generate_bids_tools.py | |
| git diff --exit-code || (echo "Generated files are out of date. Run: uv run scripts/generate_bids_tools.py" && exit 1) | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.1.0 | |
| - run: uv sync --only-dev | |
| - name: Ruff format | |
| run: uv run ruff format --check | |
| - name: Ruff check | |
| run: uv run ruff check | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.1.0 | |
| - run: uv sync | |
| - run: uv run mypy . | |
| deptry: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.1.0 | |
| - run: uv sync | |
| - run: uv run deptry ./src |