Skip to content

Commit 3abaf97

Browse files
authored
maintenance: update CI setup (#186)
* maintenance: update CI setup * fix: define reference python version * fix: try global env var
1 parent b324225 commit 3abaf97

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches: [ master ]
1111

12+
env:
13+
REF_PY_VERSION: "3.13"
14+
1215
jobs:
1316
build:
1417

@@ -17,26 +20,20 @@ jobs:
1720
fail-fast: false
1821
matrix:
1922
os: [ubuntu-latest]
20-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
23+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2124
env: [{ MINIMAL: "true" }, { MINIMAL: "false" }]
2225
include:
2326
# custom python versions
24-
- os: ubuntu-20.04
25-
python-version: 3.8
26-
- os: macos-13
27-
python-version: 3.8
2827
- os: macos-latest
2928
python-version: "3.13"
30-
- os: windows-latest
31-
python-version: "3.11"
3229
- os: windows-latest
3330
python-version: "3.13"
3431
steps:
35-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v5
3633

3734
# Python and pip setup
3835
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
4037
with:
4138
python-version: ${{ matrix.python-version }}
4239

@@ -69,7 +66,7 @@ jobs:
6966
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
7067
7168
- name: Code format and type checking
72-
if: ${{ matrix.python-version == '3.13' }}
69+
if: ${{ matrix.python-version == env.REF_PY_VERSION }}
7370
run: |
7471
black --check --diff htmldate
7572
mypy -p htmldate
@@ -84,8 +81,8 @@ jobs:
8481
8582
# coverage
8683
- name: Upload coverage to Codecov
87-
if: ${{ matrix.env.MINIMAL == 'false' && matrix.python-version == '3.13' }}
88-
uses: codecov/codecov-action@v4
84+
if: ${{ matrix.env.MINIMAL == 'false' && matrix.python-version == env.REF_PY_VERSION }}
85+
uses: codecov/codecov-action@v5
8986
env:
9087
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9188
with:

0 commit comments

Comments
 (0)