work around pytest faulthandler bug under Windows when running using … #135
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: Build | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| name: run-tests (${{ matrix.os || 'linux' }}-${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os || 'ubuntu' }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - {python-version: "3.14", args: --run-slow} | |
| - {os: windows, python-version: "3.14", args: --run-slow} | |
| - {os: macos, python-version: "3.14", args: --run-slow} | |
| - python-version: "3.13" | |
| - python-version: "3.12" | |
| - python-version: "3.11" | |
| - python-version: "3.10" | |
| - python-version: pypy-3.11 | |
| - python-version: pypy-3.10 | |
| steps: | |
| - name: Checkout source repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Pip install -e . --group test | |
| run: | | |
| echo "::group::Run python -m pip install --upgrade pip setuptools wheel" | |
| python -m pip install --upgrade pip setuptools wheel | |
| echo "::endgroup::" | |
| echo "::group::Run pip install -e . --group test" | |
| pip install -e . --group test | |
| echo "::endgroup::" | |
| - name: Run tests${{ matrix.args && format(' with {0}', matrix.args) || '' }} | |
| run: python run-tests.py ${{ matrix.args }} | |
| - name: Upload test coverage | |
| uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| typecheck-code: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - python-version: "3.14" | |
| steps: | |
| - name: Checkout source repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Pip install --group typing | |
| run: pip install --group typing | |
| - name: Run mypy | |
| run: | | |
| FAILED=0 | |
| python -m mypy || FAILED=$? | |
| [ $FAILED -eq 0 ] || echo "::warning::mypy failed with exit code $FAILED" | |
| shell: bash |