Skip to content

update ci

update ci #244

Workflow file for this run

# This is a basic workflow that is manually triggered
name: Basic Test
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
ref: dev
- name: Set up Python
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install .
- name: Run tests
run: |
pytest -v --cov=seispy --cov-report=xml
- name: Upload to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos