Use deadsnakes/action@v1.0.0 to install python3.9 nightly

This commit is contained in:
Anthony Sottile 2020-05-23 13:29:36 -07:00
parent c594bbbd19
commit c9abdaf381
1 changed files with 7 additions and 7 deletions

View File

@ -94,7 +94,7 @@ jobs:
os: ubuntu-latest
tox_env: "py38-xdist"
- name: "ubuntu-py39"
python: "3.8"
python: "3.9-dev"
os: ubuntu-latest
tox_env: "py39-xdist"
- name: "ubuntu-pypy3"
@ -132,14 +132,14 @@ jobs:
- run: git fetch --prune --unshallow
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
if: matrix.python != '3.9-dev'
with:
python-version: ${{ matrix.python }}
- name: Set up Python ${{ matrix.python }} (deadsnakes)
uses: deadsnakes/action@v1.0.0
if: matrix.python == '3.9-dev'
with:
python-version: ${{ matrix.python }}
- name: install python3.9
if: matrix.tox_env == 'py39-xdist'
run: |
sudo add-apt-repository ppa:deadsnakes/nightly
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils
- name: Install dependencies
run: |
python -m pip install --upgrade pip