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:
parent
c89d1f9d41
commit
9bacb3c74a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue