Skip to content

Commit 59c7ef1

Browse files
authored
GitHub Actions: Modernize versions of GitHub Actions and Python
1 parent 8e27c66 commit 59c7ef1

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v5
99
with:
1010
submodules: recursive
11-
- uses: actions/setup-python@v1
11+
- uses: actions/setup-python@v6
1212
with:
13-
python-version: 3.8
13+
python-version: 3.x
1414
- name: Run lint
1515
run: |
1616
python -m pip install tox
@@ -22,17 +22,17 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [ubuntu-latest, macos-latest, windows-latest]
25-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
25+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
2626
steps:
2727
- name: Set git to use LF on Windows
2828
if: runner.os == 'Windows'
2929
run: |
3030
git config --global core.autocrlf false
3131
git config --global core.eol lf
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v5
3333
with:
3434
submodules: recursive
35-
- uses: actions/setup-python@v4
35+
- uses: actions/setup-python@v6
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
allow-prereleases: true
@@ -44,16 +44,16 @@ jobs:
4444
package-sdist:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v5
4848
with:
4949
submodules: recursive
50-
- uses: actions/setup-python@v1
50+
- uses: actions/setup-python@v6
5151
with:
5252
python-version: 3.x
5353
- name: Build source package
5454
run: python setup.py sdist
5555
- name: Upload source package
56-
uses: actions/upload-artifact@v1
56+
uses: actions/upload-artifact@v4
5757
with:
5858
name: sdist
5959
path: dist/
@@ -71,11 +71,12 @@ jobs:
7171
os: windows-latest
7272

7373
steps:
74-
- uses: actions/checkout@v2
74+
- uses: actions/checkout@v5
7575
with:
7676
submodules: recursive
77-
- uses: actions/setup-python@v2
78-
77+
- uses: actions/setup-python@v6
78+
with:
79+
python-version: 3.x
7980
- name: Install cibuildwheel
8081
run: python -m pip install cibuildwheel
8182
# - name: Install Visual C++ for Python 2.7
@@ -91,16 +92,16 @@ jobs:
9192
if: runner.os == 'Windows'
9293
run: python -m cibuildwheel --output-dir wheelhouse
9394
env:
94-
CIBW_BUILD: cp37-${{ matrix.name }}* pp*-${{ matrix.name }}*
95+
CIBW_BUILD: cp310-${{ matrix.name }}* pp*-${{ matrix.name }}*
9596

9697
- name: Build wheels for Linux and macOS
9798
if: runner.os != 'Windows'
9899
run: python -m cibuildwheel --output-dir wheelhouse
99100
env:
100-
CIBW_BUILD: cp37-${{ matrix.name }}* pp*-${{ matrix.name }}*
101+
CIBW_BUILD: cp310-${{ matrix.name }}* pp*-${{ matrix.name }}*
101102
CIBW_ARCHS_LINUX: auto aarch64
102103
CIBW_BEFORE_BUILD_LINUX: yum install -y libffi-devel
103-
- uses: actions/upload-artifact@v2
104+
- uses: actions/upload-artifact@v4
104105
with:
105106
name: wheels-${{ matrix.name }}
106107
path: ./wheelhouse/*.whl
@@ -109,20 +110,20 @@ jobs:
109110
runs-on: ubuntu-latest
110111
needs: [lint, test, package-sdist, package-wheel]
111112
steps:
112-
- uses: actions/checkout@v2
113-
- uses: actions/download-artifact@v1
113+
- uses: actions/checkout@v5
114+
- uses: actions/download-artifact@v5
114115
with:
115116
name: sdist
116117
path: dist/
117-
- uses: actions/download-artifact@v1
118+
- uses: actions/download-artifact@v5
118119
with:
119120
name: wheels-win
120121
path: dist/
121-
- uses: actions/download-artifact@v1
122+
- uses: actions/download-artifact@v5
122123
with:
123124
name: wheels-macos
124125
path: dist/
125-
- uses: actions/download-artifact@v1
126+
- uses: actions/download-artifact@v5
126127
with:
127128
name: wheels-manylinux
128129
path: dist/

0 commit comments

Comments
 (0)