For the next release #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install it | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install .[tests] -v | |
- name: Lint with Ruff | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: "check" | |
continue-on-error: true | |
- name: Check types with mypy | |
run: | | |
mypy --strict ./sigpyproc/ | |
continue-on-error: true | |
- name: Test with pytest and Generate coverage report | |
run: | | |
pytest --cov=./ --cov-report=xml | |
continue-on-error: false | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.xml | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |