Skip to content

Bugfix for PhaseNet label IDs #511

Bugfix for PhaseNet label IDs

Bugfix for PhaseNet label IDs #511

Workflow file for this run

# This workflow runs on every push to main. It does the following:
# 1. Checks if black formatting is followed.
# 2. Runs all tests.
name: lint
on:
pull_request:
push:
branches:
- 'main*'
env:
SEISBENCH_CACHE_ROOT: seisbench_cache
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
run_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetched tags too
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
# Load SeisBench cache to ensure data sets are always locally available
- name: Cache SeisBench
uses: actions/cache@v3
with:
path: seisbench_cache
key: seisbench-cache-v2
restore-keys: |
seisbench-cache-v2
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[tests]
- name: Test with pytest
run: |
pytest tests/