Fix docs workflow #1088
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: QualityChecks | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11"] | |
| fail-fast: false | |
| name: Python-${{ matrix.python-version }} | |
| steps: | |
| #---------------------------------------------- | |
| # check-out repo and set-up python | |
| #---------------------------------------------- | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.9.6" | |
| #---------------------------------------------- | |
| # install | |
| #---------------------------------------------- | |
| - name: Install dependencies | |
| run: UV_PYTHON=python${{ matrix.python-version }} make sync | |
| #---------------------------------------------- | |
| # test | |
| #---------------------------------------------- | |
| - name: Run tests | |
| run: UV_PYTHON=python${{ matrix.python-version }} make test | |
| - name: Create badge | |
| run: | | |
| uv pip install genbadge[coverage] | |
| uv run genbadge coverage -i coverage.xml -o coverage.svg | |
| - name: Uploade coverage artifact | |
| if: matrix.python-version == '3.11' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: coverage | |
| path: | | |
| coverage_html/** | |
| coverage.svg | |
| retention-days: 1 | |
| overwrite: true |