Merge pull request #17 from GavinHuttley/main #43
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: | |
| pull_request: | |
| # NOTE: | |
| # if changing python versions, also update versions in | |
| # - release.yml | |
| # - noxfile.py | |
| jobs: | |
| tests: | |
| name: "Python ${{ matrix.python-version }} (${{ matrix.os }})" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.11", "3.14"] | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: "Run nox for ${{ matrix.python-version }}" | |
| shell: bash | |
| run: | | |
| cov="--cov-report lcov:lcov-${{matrix.os}}-${{matrix.python-version}}.lcov --cov-report term --cov-append --cov citeable" | |
| uv run nox -s "test-${{ matrix.python-version }}" -- $cov | |
| - name: Coveralls Parallel | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| parallel: true | |
| github-token: ${{ secrets.github_token }} | |
| flag-name: run-${{matrix.python-version}}-${{matrix.os}} | |
| file: "tests/lcov-${{matrix.os}}-${{matrix.python-version}}.lcov" | |
| type_check: | |
| name: Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: "Run Type Checking" | |
| run: uv run mypy src/citeable --strict | |
| finish: | |
| name: "Finish Coveralls" | |
| needs: tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.github_token }} | |
| parallel-finished: true |