Skip to content

Commit 28e43e5

Browse files
committed
Update github workflows
1 parent 6eeddbb commit 28e43e5

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

.github/workflows/python-release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- name: Set up Python 3.10
13-
uses: actions/setup-python@v4
11+
- uses: actions/checkout@v4
12+
- name: Set up Python 3.12
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.12"
16+
1617
- name: Install build requirements
1718
run: python -m pip install wheel
19+
1820
- name: Build package
1921
run: python setup.py sdist bdist_wheel
22+
2023
- name: Publish package
21-
uses: pypa/gh-action-pypi-publish@master
24+
uses: pypa/gh-action-pypi-publish@v1.8.14
2225
with:
2326
user: __token__
2427
password: ${{ secrets.pypi_password }}

.github/workflows/python-test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
format:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

19-
- name: Set up Python 3.10
20-
uses: actions/setup-python@v4
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v5
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.12"
2323

2424
- name: Install dependencies
2525
run: pip install tox
@@ -32,12 +32,12 @@ jobs:
3232
strategy:
3333
max-parallel: 4
3434
matrix:
35-
python-version: ["3.8", "3.9", "3.10", "3.11"]
35+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838

3939
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343

@@ -52,7 +52,7 @@ jobs:
5252
- name: Prepare artifacts
5353
run: mkdir .coverage-data && mv .coverage.* .coverage-data/
5454

55-
- uses: actions/upload-artifact@master
55+
- uses: actions/upload-artifact@v4
5656
with:
5757
name: coverage-data
5858
path: .coverage-data/
@@ -61,16 +61,16 @@ jobs:
6161
runs-on: ubuntu-latest
6262
needs: [test]
6363
steps:
64-
- uses: actions/checkout@v3
65-
- uses: actions/download-artifact@master
64+
- uses: actions/checkout@v4
65+
- uses: actions/download-artifact@v4
6666
with:
6767
name: coverage-data
6868
path: .
6969

70-
- name: Set up Python 3.10
71-
uses: actions/setup-python@v4
70+
- name: Set up Python 3.12
71+
uses: actions/setup-python@v5
7272
with:
73-
python-version: "3.10"
73+
python-version: "3.12"
7474

7575
- name: Install dependencies
7676
run: |
@@ -81,4 +81,4 @@ jobs:
8181
run: tox -e coverage-report
8282

8383
- name: Upload to codecov
84-
uses: codecov/codecov-action@v1.0.6
84+
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)