mirror of
https://github.com/sherlock-project/sherlock
synced 2025-02-16 12:38:27 +00:00
Break linting env out
This commit is contained in:
parent
f86bdc1f84
commit
c58b030456
1 changed files with 17 additions and 5 deletions
22
.github/workflows/regression.yml
vendored
22
.github/workflows/regression.yml
vendored
|
@ -21,10 +21,25 @@ on:
|
||||||
- '**/*.yaml'
|
- '**/*.yaml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
tox-lint:
|
||||||
|
# Linting is ran through tox to ensure that the same linter is used by local runners
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up linting environment
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Install tox and related dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install tox
|
||||||
|
- name: Run tox linting environment
|
||||||
|
run: tox -e lint
|
||||||
tox-matrix:
|
tox-matrix:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # We want to know what version it fails on
|
fail-fast: false # We want to know what specicic versions it fails on
|
||||||
matrix:
|
matrix:
|
||||||
os: [
|
os: [
|
||||||
ubuntu-latest,
|
ubuntu-latest,
|
||||||
|
@ -38,7 +53,6 @@ jobs:
|
||||||
'3.11',
|
'3.11',
|
||||||
'3.12',
|
'3.12',
|
||||||
]
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up environment ${{ matrix.python-version }}
|
- name: Set up environment ${{ matrix.python-version }}
|
||||||
|
@ -51,6 +65,4 @@ jobs:
|
||||||
pip install tox
|
pip install tox
|
||||||
pip install tox-gh-actions
|
pip install tox-gh-actions
|
||||||
- name: Run tox
|
- name: Run tox
|
||||||
run: |
|
run: tox
|
||||||
tox -e lint
|
|
||||||
tox
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue