ci: update global python (#662)
This commit is contained in:
9
.github/workflows/python-flake8.yml
vendored
9
.github/workflows/python-flake8.yml
vendored
@@ -3,6 +3,8 @@
|
|||||||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
|
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
|
||||||
# the above-mentioned repo.
|
# the above-mentioned repo.
|
||||||
|
|
||||||
|
# Lint python files with flake8.
|
||||||
|
|
||||||
name: flake8
|
name: flake8
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -10,6 +12,10 @@ on:
|
|||||||
branches: [master, nightly]
|
branches: [master, nightly]
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
flake8:
|
flake8:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -24,7 +30,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools flake8
|
# pin flake8 before v6.0.0 due to removal of support for type comments (required for Python 2.7 type hints)
|
||||||
|
python -m pip install --upgrade pip setuptools "flake8<6"
|
||||||
|
|
||||||
- name: Test with flake8
|
- name: Test with flake8
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user