python styleguide #56
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 | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.14" | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| - name: Install dependencies | |
| run: poetry install --no-interaction --with docs | |
| - name: Run quality gate | |
| run: make quality | |
| - name: Run docs strict gate | |
| run: make docs-strict | |
| - name: Run qa-docs (pydocstyle + interrogate) | |
| run: make qa-docs | |
| - name: Interrogate diff gate (changed modules vs baseline) | |
| run: poetry run python scripts/check_interrogate_gate.py --base-ref origin/main | |
| - name: Collect coverage report | |
| run: | | |
| poetry run coverage run -m pytest | |
| poetry run coverage report | |
| poetry run coverage xml | |
| - name: Upload coverage to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| file: ./coverage.xml | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |