Commit 2b8b730d authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

Add Python 3.9 beta from deadsnakes

parent f976af5f
...@@ -34,6 +34,9 @@ jobs: ...@@ -34,6 +34,9 @@ jobs:
# Pre-release versions (GH-shipped) # Pre-release versions (GH-shipped)
- os: ubuntu-20.04 - os: ubuntu-20.04
python-version: 3.9.0-beta.4 - 3.9.0 python-version: 3.9.0-beta.4 - 3.9.0
# Pre-release versions (deadsnakes)
- os: ubuntu-20.04
python-version: 3.9-beta
# Dev versions (deadsnakes) # Dev versions (deadsnakes)
- os: ubuntu-20.04 - os: ubuntu-20.04
python-version: 3.9-dev python-version: 3.9-dev
...@@ -42,21 +45,34 @@ jobs: ...@@ -42,21 +45,34 @@ jobs:
env: env:
NETWORK_REQUIRED: 1 NETWORK_REQUIRED: 1
PYTHON_VERSION: ${{ matrix.python-version }}
TOX_PARALLEL_NO_SPINNER: 1 TOX_PARALLEL_NO_SPINNER: 1
TOXENV: python TOXENV: python
USE_DEADSNAKES: false
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }} (deadsnakes) - name: Set flag to use deadsnakes
if: >-
endsWith(env.PYTHON_VERSION, '-beta') ||
endsWith(env.PYTHON_VERSION, '-dev')
run: |
from __future__ import print_function
python_version = '${{ env.PYTHON_VERSION }}'.replace('-beta', '')
print('::set-env name=PYTHON_VERSION::{ver}'.format(ver=python_version))
print('::set-env name=USE_DEADSNAKES::true')
shell: python
- name: Set up Python ${{ env.PYTHON_VERSION }} (deadsnakes)
uses: deadsnakes/action@v1.0.0 uses: deadsnakes/action@v1.0.0
if: endsWith(matrix.python-version, '-dev') if: fromJSON(env.USE_DEADSNAKES) && true || false
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ env.PYTHON_VERSION }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
if: "!endsWith(matrix.python-version, '-dev')" if: >-
!fromJSON(env.USE_DEADSNAKES) && true || false
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ env.PYTHON_VERSION }}
- name: Log Python version - name: Log Python version
run: >- run: >-
python --version python --version
...@@ -88,9 +104,9 @@ jobs: ...@@ -88,9 +104,9 @@ jobs:
run: >- run: >-
python -m pip freeze --all python -m pip freeze --all
- name: Adjust TOXENV for PyPy - name: Adjust TOXENV for PyPy
if: startsWith(matrix.python-version, 'pypy') if: startsWith(env.PYTHON_VERSION, 'pypy')
run: >- run: >-
echo "::set-env name=TOXENV::${{ matrix.python-version }}" echo "::set-env name=TOXENV::${{ env.PYTHON_VERSION }}"
- name: Log env vars - name: Log env vars
run: >- run: >-
env env
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment