Skip to content

Commit 2f1a122

Browse files
committed
ci: replace actions/setup-python with containers
1 parent fdbb403 commit 2f1a122

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,16 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy2.7", "pypy3.9"]
12+
container: ["python:2.7-slim", "python:3.5-slim", "python:3.6-slim", "python:3.7-slim",
13+
"python:3.8-slim", "python:3.9-slim", "python:3.10-slim", "python:3.11-slim",
14+
"python:3.12-slim", "python:3.13-slim", "pypy:2.7-slim", "pypy:3.11-slim"]
1315
include:
14-
- setup-python: true
1516
- check-types: true
16-
- python-version: "2.7"
17-
container: "python:2.7.18-slim"
18-
setup-python: false
17+
- container: "python:2.7-slim"
1918
check-types: false
20-
- python-version: "3.5"
21-
container: "python:3.5.10-slim"
22-
setup-python: false
19+
- container: "python:3.5-slim"
2320
check-types: false
24-
- python-version: "3.6"
25-
container: "python:3.6.15-slim"
26-
setup-python: false
27-
- python-version: "3.7"
28-
container: "python:3.7.17-slim"
29-
setup-python: false
30-
- python-version: "pypy2.7"
21+
- container: "pypy:2.7-slim"
3122
check-types: false
3223

3324
runs-on: ubuntu-24.04
@@ -36,12 +27,6 @@ jobs:
3627
steps:
3728
- uses: actions/checkout@v4
3829

39-
- name: Set up Python ${{ matrix.python-version }}
40-
if: ${{ matrix.setup-python }}
41-
uses: actions/setup-python@v5
42-
with:
43-
python-version: ${{ matrix.python-version }}
44-
4530
- name: Upgrade pip
4631
run: python -m pip install --upgrade pip
4732

0 commit comments

Comments
 (0)