Skip to content

Commit 981b096

Browse files
authored
Merge pull request #7249 from asottile/deadsnakes_github_action
Use deadsnakes/[email protected] to install python3.9 nightly
2 parents c594bbb + c9abdaf commit 981b096

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
os: ubuntu-latest
9595
tox_env: "py38-xdist"
9696
- name: "ubuntu-py39"
97-
python: "3.8"
97+
python: "3.9-dev"
9898
os: ubuntu-latest
9999
tox_env: "py39-xdist"
100100
- name: "ubuntu-pypy3"
@@ -132,14 +132,14 @@ jobs:
132132
- run: git fetch --prune --unshallow
133133
- name: Set up Python ${{ matrix.python }}
134134
uses: actions/setup-python@v2
135+
if: matrix.python != '3.9-dev'
136+
with:
137+
python-version: ${{ matrix.python }}
138+
- name: Set up Python ${{ matrix.python }} (deadsnakes)
139+
uses: deadsnakes/[email protected]
140+
if: matrix.python == '3.9-dev'
135141
with:
136142
python-version: ${{ matrix.python }}
137-
- name: install python3.9
138-
if: matrix.tox_env == 'py39-xdist'
139-
run: |
140-
sudo add-apt-repository ppa:deadsnakes/nightly
141-
sudo apt-get update
142-
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils
143143
- name: Install dependencies
144144
run: |
145145
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)