Extract PYTHON_LATEST in GHA (#873)

Signed-off-by: Gábor Lipták <gliptak@gmail.com>

Co-authored-by: Hynek Schlawack <hs@ox.cx>
This commit is contained in:
Gábor Lipták 2021-11-25 03:52:49 -05:00 committed by GitHub
parent c89d1f9d41
commit 9bacb3c74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@ on:
env:
FORCE_COLOR: "1" # Make tools pretty.
TOX_TESTENV_PASSENV: "FORCE_COLOR"
PYTHON_LATEST: "3.10"
jobs:
@ -55,7 +56,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10" # Use latest, so it understands all syntax.
python-version: ${{env.PYTHON_LATEST}} # Use latest, so it understands all syntax.
- run: "python -m pip install --upgrade coverage[toml]"
@ -84,7 +85,7 @@ jobs:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "3.10"
python-version: ${{env.PYTHON_LATEST}}
- name: "Install build and lint tools"
run: "python -m pip install build twine check-wheel-contents"
@ -106,7 +107,7 @@ jobs:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "3.10"
python-version: ${{env.PYTHON_LATEST}}
- name: "Install in dev mode"
run: "python -m pip install -e .[dev]"
- name: "Import package"