Skip to content

Commit 7d16254

Browse files
committed
V4.0.1
1 parent 42e1082 commit 7d16254

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/workflow.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77
pull_request:
88
branches: [main, master]
99

10+
1011
env:
11-
PYTHON_VERSIONS: '["3.10", "3.11", "3.12", "3.13"]'
12+
PYTHON_VERSIONS: '3.10, 3.11, 3.12, 3.13'
13+
1214

1315
jobs:
1416
test:
@@ -17,10 +19,16 @@ jobs:
1719
strategy:
1820
fail-fast: false
1921
matrix:
20-
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
22+
python-version: ${{ env.PYTHON_VERSIONS }}
2123
steps:
2224
- uses: actions/checkout@v4
2325

26+
- name: Get latest Python version
27+
id: get_latest
28+
run: |
29+
LATEST_VERSION=$(echo "$PYTHON_VERSIONS" | tr ' ' '\n' | tail -n1)
30+
echo "LATEST_PYTHON_VERSION=$LATEST_VERSION" >> "$GITHUB_ENV"
31+
2432
- name: Set up Python ${{ matrix.python-version }}
2533
uses: actions/setup-python@v5
2634
with:
@@ -39,7 +47,7 @@ jobs:
3947
run: poetry run poe tests
4048

4149
- name: Upload coverage reports to Codecov
42-
if: matrix.python-version == '3.13'
50+
if: matrix.python-version == env.LATEST_PYTHON_VERSION
4351
uses: codecov/codecov-action@v5
4452
with:
4553
token: ${{ secrets.CODECOV_TOKEN }}
@@ -52,7 +60,7 @@ jobs:
5260
needs: test
5361
strategy:
5462
matrix:
55-
python-version: ${{ fromJson(env.PYTHON_VERSIONS) }}
63+
python-version: ${{ env.PYTHON_VERSIONS }}
5664
steps:
5765
- uses: actions/checkout@v4
5866

0 commit comments

Comments
 (0)