Skip to content

Commit ffa49f4

Browse files
Merge pull request #439 from pypa/infra/py39
add python3.9 via deadsnakes action
2 parents 360cd07 + e1c2473 commit ffa49f4

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/python-tests.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,22 @@ jobs:
2222
python_version: "2.7"
2323
- os: windows-latest
2424
python_version: "pypy2"
25+
include:
26+
- os: ubuntu-latest
27+
python_version: '3.9-dev'
28+
2529
name: ${{ matrix.os }} - Python ${{ matrix.python_version }}
2630
steps:
2731
- uses: actions/checkout@v1
2832
- name: Setup python
29-
uses: actions/setup-python@v1
33+
uses: actions/setup-python@v2
34+
if: matrix.python_version != '3.9-dev'
35+
with:
36+
python-version: ${{ matrix.python_version }}
37+
architecture: x64
38+
- name: Set up Python ${{ matrix.python_version }} (deadsnakes)
39+
uses: deadsnakes/[email protected]
40+
if: matrix.python_version == '3.9-dev'
3041
with:
3142
python-version: ${{ matrix.python_version }}
3243
architecture: x64
@@ -64,13 +75,21 @@ jobs:
6475
name: Python ${{ matrix.python_version }} eggs
6576
strategy:
6677
matrix:
67-
python_version: ['2.7', '3.5', '3.6', '3.7', '3.8']
78+
python_version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9-dev']
6879
steps:
6980
- uses: actions/checkout@v1
70-
- name: Set up Python
71-
uses: actions/setup-python@v1
81+
- name: Setup python
82+
uses: actions/setup-python@v2
83+
if: matrix.python_version != '3.9-dev'
84+
with:
85+
python-version: ${{ matrix.python_version }}
86+
architecture: x64
87+
- name: Set up Python ${{ matrix.python_version }} (deadsnakes)
88+
uses: deadsnakes/[email protected]
89+
if: matrix.python_version == '3.9-dev'
7290
with:
7391
python-version: ${{ matrix.python_version }}
92+
architecture: x64
7493
- name: Install dependencies
7594
run: |
7695
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)