File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,37 +2,28 @@ name: Python tests
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66 pull_request :
7- branches : [ "main" ]
7+ branches : ["main"]
88
99jobs :
1010 test :
1111 runs-on : ubuntu-latest
1212
13- strategy :
14- matrix :
15- python-version : ["3.8", "3.9", "3.10", "3.11"]
16-
1713 steps :
1814 - name : Checkout repository
1915 uses : actions/checkout@v4
2016
2117 - name : Set up Python
2218 uses : actions/setup-python@v5
2319 with :
24- python-version : ${{ matrix.python-version }}
20+ python-version : " 3.8 "
2521
2622 - name : Install Poetry
2723 run : |
2824 python -m pip install --upgrade pip
2925 pip install poetry
3026
31- - name : Configure Poetry
32- run : |
33- poetry config virtualenvs.create true
34- poetry config virtualenvs.in-project true
35-
3627 - name : Install dependencies
3728 run : |
3829 poetry install --with dev
4132 run : |
4233 poetry run pytest
4334
44- - name : Upload test reports
35+ - name : Upload pytest HTML report
4536 if : always()
4637 uses : actions/upload-artifact@v4
4738 with :
48- name : pytest-report-${{ matrix.python-version }}
39+ name : pytest-report
4940 path : reports/report.html
You can’t perform that action at this time.
0 commit comments