File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88 branches : [main, master]
99
10+
1011env :
11- PYTHON_VERSIONS : ' ["3.10", "3.11", "3.12", "3.13"]'
12+ PYTHON_VERSIONS : ' 3.10, 3.11, 3.12, 3.13'
13+
1214
1315jobs :
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 :
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 }}
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
You can’t perform that action at this time.
0 commit comments