mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-22 20:03:03 +00:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Regression Testing
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- '**/*.json'
|
|
- '**/*.py'
|
|
- '**/*.ini'
|
|
- '**/*.toml'
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- '**/*.json'
|
|
- '**/*.py'
|
|
- '**/*.ini'
|
|
- '**/*.toml'
|
|
|
|
jobs:
|
|
tox-matrix:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false # We want to know what version it fails on
|
|
matrix:
|
|
os: [
|
|
ubuntu-latest,
|
|
windows-latest,
|
|
macos-latest,
|
|
]
|
|
python-version: [
|
|
'3.8',
|
|
'3.9',
|
|
'3.10',
|
|
'3.11',
|
|
'3.12',
|
|
]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up environment ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install tox and related dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox
|
|
pip install tox-gh-actions
|
|
- name: Run tox
|
|
run: |
|
|
tox -e lint
|
|
tox
|