rebasing to upstream main. Hopefully everythign still works #7
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: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # Many color libraries just need this to be set to any value, but at least | |
| # one distinguishes color depth, where "3" -> "256-bit color". | |
| FORCE_COLOR: 3 | |
| PROJECT_NAME: "ca_biositing" | |
| jobs: | |
| checks: | |
| name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} | |
| runs-on: ${{ matrix.runs-on }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["py312", "py313"] | |
| runs-on: [ubuntu-latest, macos-14] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: v0.59.0 | |
| environments: ${{ matrix.python-version }} | |
| - name: Print pixi version | |
| run: pixi --version | |
| - name: Test ca_biositing.datamodels | |
| run: | | |
| pixi run pytest src/ca_biositing/datamodels --cov=ca_biositing.datamodels --cov-report=xml --cov-append --cov-report=term-missing | |
| - name: Test ca_biositing.pipeline | |
| run: | | |
| pixi run pytest src/ca_biositing/pipeline --cov=ca_biositing.pipeline --cov-report=xml --cov-append --cov-report=term-missing | |
| - name: Test ca_biositing.webservice | |
| run: | | |
| pixi run pytest src/ca_biositing/webservice --cov=ca_biositing.webservice --cov-report=xml --cov-append --cov-report=term-missing | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v5.5.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |