Skip to content

Commit cc21a1a

Browse files
committed
Update versions to fix failures
Python 3.7 is no longer available on GitHub runners, and this workflow was failing.
1 parent 2bd9211 commit cc21a1a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ on:
2727
jobs:
2828
format:
2929
name: Format check
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
steps:
32-
- uses: actions/checkout@v1
33-
- uses: actions/setup-python@v1
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
33+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3434
with:
35-
python-version: '3.7'
35+
python-version: '3.10.15'
3636
architecture: 'x64'
3737
- name: Install yapf
3838
run: pip install yapf~=0.27.0
@@ -41,12 +41,12 @@ jobs:
4141

4242
mypy:
4343
name: Type check
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-24.04
4545
steps:
46-
- uses: actions/checkout@v2
47-
- uses: actions/setup-python@v2
46+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
47+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
4848
with:
49-
python-version: '3.7'
49+
python-version: '3.10.15'
5050
architecture: 'x64'
5151
- name: Install mypy
5252
run: pip install mypy~=0.790.0
@@ -55,28 +55,28 @@ jobs:
5555

5656
lint:
5757
name: Lint check
58-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-24.04
5959
steps:
60-
- uses: actions/checkout@v2
61-
- uses: actions/setup-python@v2
60+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
61+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
6262
with:
63-
python-version: '3.7'
63+
python-version: '3.10.15'
6464
architecture: 'x64'
6565
- name: Install pylint
6666
run: pip install pylint~=2.6.0
6767
- name: Lint
6868
run: dev/check/pylint
6969

7070
build:
71-
runs-on: ubuntu-latest
71+
runs-on: ubuntu-24.04
7272
strategy:
7373
matrix:
74-
python-version: [3.7, 3.8]
74+
python-version: [3.10.15, 3.12.8]
7575

7676
steps:
77-
- uses: actions/checkout@v2
77+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7878
- name: Set up Python ${{ matrix.python-version }}
79-
uses: actions/setup-python@v1
79+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
8080
with:
8181
python-version: ${{ matrix.python-version }}
8282
- name: Install dependencies

0 commit comments

Comments
 (0)