Skip to content

Commit c58b030

Browse files
committed
Break linting env out
1 parent f86bdc1 commit c58b030

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/regression.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,25 @@ on:
2121
- '**/*.yaml'
2222

2323
jobs:
24+
tox-lint:
25+
# Linting is ran through tox to ensure that the same linter is used by local runners
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up linting environment
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.x'
33+
- name: Install tox and related dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install tox
37+
- name: Run tox linting environment
38+
run: tox -e lint
2439
tox-matrix:
2540
runs-on: ${{ matrix.os }}
2641
strategy:
27-
fail-fast: false # We want to know what version it fails on
42+
fail-fast: false # We want to know what specicic versions it fails on
2843
matrix:
2944
os: [
3045
ubuntu-latest,
@@ -38,7 +53,6 @@ jobs:
3853
'3.11',
3954
'3.12',
4055
]
41-
4256
steps:
4357
- uses: actions/checkout@v4
4458
- name: Set up environment ${{ matrix.python-version }}
@@ -51,6 +65,4 @@ jobs:
5165
pip install tox
5266
pip install tox-gh-actions
5367
- name: Run tox
54-
run: |
55-
tox -e lint
56-
tox
68+
run: tox

0 commit comments

Comments
 (0)