Skip to content

Commit b328b21

Browse files
authored
Merge pull request #131 from binary-butterfly/update-dependencies-and-github-actions
Update dependencies and GitHub actions
2 parents 0774c36 + 1ee868a commit b328b21

3 files changed

Lines changed: 29 additions & 29 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ on:
1010
jobs:
1111
build:
1212
name: Build package
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
# We use Python 3.10 here because it's the minimum Python version supported by this library.
1919
- name: Setup Python 3.10
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: 3.10
2323

@@ -28,7 +28,7 @@ jobs:
2828
run: python -m build
2929

3030
- name: Upload build artifacts
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: dist_packages
3434
path: dist/
@@ -37,18 +37,18 @@ jobs:
3737
# This job tests the built package by installing it via pip and running unit tests (without tox).
3838
name: Test package
3939
needs: build
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-24.04
4141

4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4444

4545
- name: Setup Python 3.10
46-
uses: actions/setup-python@v4
46+
uses: actions/setup-python@v5
4747
with:
4848
python-version: 3.10
4949

5050
- name: Download build artifacts
51-
uses: actions/download-artifact@v3
51+
uses: actions/download-artifact@v4
5252
with:
5353
name: dist_packages
5454
path: dist/
@@ -62,23 +62,23 @@ jobs:
6262
publish:
6363
name: Publish package
6464
needs: test
65-
runs-on: ubuntu-latest
65+
runs-on: ubuntu-24.04
6666

6767
steps:
6868
- name: Download build artifacts
69-
uses: actions/download-artifact@v3
69+
uses: actions/download-artifact@v4
7070
with:
7171
name: dist_packages
7272
path: dist/
7373

7474
- name: Upload package to GitHub release assets
75-
uses: AButler/upload-release-assets@v2.0
75+
uses: AButler/upload-release-assets@v3.0
7676
with:
7777
files: dist/*
7878
repo-token: ${{ secrets.GITHUB_TOKEN }}
7979

8080
- name: Publish package to PyPI
81-
uses: pypa/gh-action-pypi-publish@v1.8.6
81+
uses: pypa/gh-action-pypi-publish@v1.12.4
8282
with:
8383
user: __token__
8484
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/tests.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
test:
1515
name: Run unit tests (Python ${{ matrix.python-version }})
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717

1818
strategy:
1919
fail-fast: false
@@ -24,10 +24,10 @@ jobs:
2424
- '3.12'
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828

2929
- name: Setup Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333

@@ -39,16 +39,15 @@ jobs:
3939
run: tox run -e clean,py,report,flake8,mypy -- --junit-xml=reports/pytest_${{ matrix.python-version }}.xml
4040

4141
- name: Upload test result artifacts
42-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
4343
if: success() || failure()
4444
with:
45-
# This will add every pytest_VERSION.xml to the same artifact file
46-
name: pytest-results
45+
name: pytest-results-${{ matrix.python-version }}
4746
path: reports/pytest_${{ matrix.python-version }}.xml
4847

4948
report:
5049
name: Publish unit test reports
51-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-24.04
5251

5352
# Job depends on test results
5453
needs: test
@@ -57,16 +56,17 @@ jobs:
5756
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
5857

5958
steps:
60-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
6160

6261
- name: Download test result artifacts
63-
uses: actions/download-artifact@v3
62+
uses: actions/download-artifact@v4
6463
with:
65-
name: pytest-results
6664
path: reports/
65+
pattern: pytest-results-*
66+
merge-multiple: true
6767

6868
- name: Publish unit test reports
69-
uses: dorny/test-reporter@v1
69+
uses: dorny/test-reporter@v2.1.1
7070
if: success() || failure()
7171
with:
7272
name: Pytest Report

setup.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ package_dir =
3030
packages = find:
3131
python_requires = ~=3.10
3232
install_requires =
33-
typing-extensions ~= 4.12
33+
typing-extensions ~= 4.14
3434

3535
[options.packages.find]
3636
where = src
3737

3838
[options.extras_require]
3939
testing =
40-
pytest ~= 8.3
41-
pytest-cov ~= 6.0
42-
coverage ~= 7.6
43-
flake8 ~= 7.1
44-
mypy ~= 1.13
40+
pytest ~= 8.4
41+
pytest-cov ~= 6.2
42+
coverage ~= 7.9
43+
flake8 ~= 7.3
44+
mypy ~= 1.17

0 commit comments

Comments
 (0)