Fix urls for affordances in the server thing descriptions #568
Workflow file for this run
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: Test | |
| on: | |
| - pull_request | |
| jobs: | |
| base_coverage: | |
| continue-on-error: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12 | |
| - name: Install Dependencies | |
| run: pip install -e . -r dev-requirements.txt | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=src --cov-report=lcov | |
| mv coverage.lcov base-coverage.lcov | |
| - name: Upload code coverage for base branch | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: base-coverage.lcov | |
| path: ./base-coverage.lcov | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install Dependencies | |
| run: pip install -e . -r dev-requirements.txt | |
| - name: Lint with Ruff | |
| run: ruff check . | |
| - name: Format with Ruff | |
| run: ruff format --check . | |
| - name: Check spelling | |
| run: codespell . | |
| - name: Lint with Flake8 (for docstrings) | |
| if: ${{ contains('3.12,3.13', matrix.python) }} | |
| # Flake8 crashes on Python < 3.12, so we exclude those versions. | |
| # Flake8 is primarily here to lint the docstrings, which | |
| # does not need to happen under multiple versions. | |
| run: flake8 src | |
| - name: Test with pytest | |
| run: pytest --cov=src --cov-report=lcov | |
| - name: Upload code coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.python }} | |
| path: ./coverage.lcov | |
| - name: Analyse with MyPy | |
| run: mypy | |
| test-with-unpinned-deps: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install Dependencies | |
| run: pip install -e .[dev] | |
| - name: Lint with Ruff | |
| run: ruff check . | |
| - name: Format with Ruff | |
| if: success() || failure() | |
| run: ruff format --check . | |
| - name: Analyse with MyPy | |
| if: success() || failure() | |
| run: mypy | |
| - name: Test with pytest | |
| if: success() || failure() | |
| run: pytest --cov=src --cov-report=lcov | |
| - name: Check quickstart, including installation | |
| if: success() || failure() | |
| run: bash ./docs/source/quickstart/test_quickstart_example.sh | |
| coverage: | |
| runs-on: ubuntu-latest | |
| needs: [base_coverage, test] | |
| steps: | |
| - name: Download code coverage report | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-3.12 | |
| - name: Download code coverage report for base branch | |
| id: download-base-coverage | |
| continue-on-error: true | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: base-coverage.lcov | |
| - name: Generate Code Coverage report | |
| # Note, due to continue on error (to make job pass) we need to check the | |
| # Status of the step directly not just use success() or failure() | |
| if: steps.download-base-coverage.outcome == 'success' | |
| id: code-coverage | |
| uses: barecheck/code-coverage-action@v1 | |
| with: | |
| barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }} | |
| lcov-file: "./coverage.lcov" | |
| base-lcov-file: "./base-coverage.lcov" | |
| minimum-ratio: 0 | |
| send-summary-comment: true | |
| show-annotations: "warning" | |
| - name: Generate Code Coverage report if base job fails | |
| if: steps.download-base-coverage.outcome == 'failure' | |
| id: code-coverage-without-base | |
| uses: barecheck/code-coverage-action@v1 | |
| with: | |
| barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }} | |
| lcov-file: "./coverage.lcov" | |
| minimum-ratio: 0 | |
| send-summary-comment: true | |
| show-annotations: "warning" |