Skip to content

Commit 2723f84

Browse files
authored
Upgrade Build Tools to Latest (#435)
* Upgrade Tox and Github Actions to Python 3.13 and remove EOL 3.8. * CI: Upgrade CodeCov to v5 and use token for uploading reports. - Upgrade Python actions to v5. - Upgrade checkout to v4.
1 parent 9c4dd10 commit 2723f84

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
name: "Tox ${{ matrix.toxenv }}"
2828
steps:
2929
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

3434
- name: setup python
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5
3636
with:
37-
python-version: '3.12'
37+
python-version: '3.13'
3838

3939
- name: Install Requirements [${{ matrix.toxenv }}]
4040
run: pip install tox
@@ -48,14 +48,12 @@ jobs:
4848
strategy:
4949
matrix:
5050
toxenv:
51-
- py38
5251
- py39
5352
- py310
5453
- py311
5554
- py312
55+
- py313
5656
include:
57-
- toxenv: py38
58-
python-version: '3.8'
5957
- toxenv: py39
6058
python-version: '3.9'
6159
- toxenv: py310
@@ -64,6 +62,8 @@ jobs:
6462
python-version: '3.11'
6563
- toxenv: py312
6664
python-version: '3.12'
65+
- toxenv: py313
66+
python-version: '3.13'
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969
TOXENV: ${{ matrix.toxenv }}
@@ -72,12 +72,12 @@ jobs:
7272
# Steps represent a sequence of tasks that will be executed as part of the job
7373
steps:
7474
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
75-
- uses: actions/checkout@v2
75+
- uses: actions/checkout@v4
7676
with:
7777
fetch-depth: 2
7878

7979
- name: setup python
80-
uses: actions/setup-python@v2
80+
uses: actions/setup-python@v5
8181
with:
8282
python-version: ${{ matrix.python-version }}
8383

@@ -88,10 +88,9 @@ jobs:
8888
run: tox
8989

9090
- name: Upload coverage to Codecov
91-
# see https://github.com/codecov/codecov-action/blob/master/README.md
92-
uses: codecov/codecov-action@v2
91+
uses: codecov/codecov-action@v5
9392
with:
9493
flags: unittests-${{ matrix.python-version }}
94+
token: ${{ secrets.CODECOV_TOKEN }}
9595
fail_ci_if_error: true # default = false
96-
os: toxenv
9796
verbose: true # default = false

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-python@v5
2121
with:
22-
python-version: '3.12'
22+
python-version: '3.13'
2323

2424
- name: Build
2525
run: |

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist =
44
flake8
55
isort
66
mypy
7-
py{38,39,310,311,312,py3}
7+
py{39,310,311,312,313,py3}
88
minversion = 4.11.4
99

1010
[testenv]

0 commit comments

Comments
 (0)