Break linting env out

pull/2189/head
Paul Pfeister 7 months ago
parent f86bdc1f84
commit c58b030456
No known key found for this signature in database
GPG Key ID: 70D33A96CBD7A994

@ -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…
Cancel
Save