Skip to content

Commit 0826e6b

Browse files
authored
Simplify Python CI workflow configuration
1 parent 60dafd8 commit 0826e6b

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,28 @@ name: Python tests
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
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
@@ -41,9 +32,9 @@ jobs:
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

0 commit comments

Comments
 (0)