Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7
8 runs-on: ubuntu-latest
9 strategy:
10 matrix:
11 python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
12
13 steps:
14 - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
15 - name: Set up Python ${{ matrix.python-version }}
16 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
17 with:
18 python-version: ${{ matrix.python-version }}
19 - name: Install dependencies
20 run: |
21 python -m pip install pip==26.0.1
22 python -m pip install -e .[testing]
23 python -m pip install pre-commit==4.5.1
24 - name: Ensure pre-commit was applied
25 run: |
26 pre-commit run --all-files
27 - name: Test
28 run: |
29 pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess
30 - name: Test packages creation
31 run: |
32 python -m pip install build==1.4.2
33 python -m build .