mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use env for python version
This commit is contained in:
parent
dd91329ed7
commit
996554541c
11
.github/workflows/pr_checks.yaml
vendored
11
.github/workflows/pr_checks.yaml
vendored
@ -11,10 +11,9 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- l10*
|
- l10*
|
||||||
|
|
||||||
# inputs:
|
env:
|
||||||
# python_version:
|
python_version: 3.7
|
||||||
# description: “Python version”
|
|
||||||
# default: 3.7
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@ -36,10 +35,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python ${{ env.python_version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: ${{ env.python_version }}
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
pip install flake8==3.8.3
|
pip install flake8==3.8.3
|
||||||
|
Loading…
Reference in New Issue
Block a user