@@ -2,7 +2,7 @@ name: unit-tests
22
33on :
44 push :
5- branches : [main]
5+ branches : [ main ]
66 pull_request :
77 workflow_dispatch :
88
@@ -11,33 +11,28 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- python-version : [" 3.9", " 3.10", " 3.11", " 3.12", " 3.13" ]
14+ python-version : [3.9.18, 3.10.13, 3.11.6, 3.12.1, 3.13.0 ]
1515 continue-on-error : true
1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
2121 token : ${{ secrets.GITHUB_TOKEN }}
22-
23- - uses : actions/setup-python@v5
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v5
2424 with :
2525 python-version : ${{ matrix.python-version }}
26-
27- - name : Install uv
28- uses : astral-sh/setup-uv@v5
29-
30- - name : install poetry as a tool
31- run : uv tool install poetry
32-
33- - name : install dependencies
34- run : uvx poetry install --with dev
35-
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install poetry
30+ poetry install --with dev
3631 - name : Unit tests
37- run : uvx poetry run pytest tests/ --cov --cov-report=xml
38-
32+ run : |
33+ poetry run pytest tests/ --cov --cov-report=xml
3934 - name : Upload coverage reports to Codecov
4035 uses : codecov/codecov-action@v5
4136 if : matrix.python-version == '3.12.1'
4237 with :
43- token : ${{ secrets.CODECOV_TOKEN }}
38+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments