Skip to content

Merge pull request #121 from IMMM-SFA/bugfix/hmm #151

Merge pull request #121 from IMMM-SFA/bugfix/hmm

Merge pull request #121 from IMMM-SFA/bugfix/hmm #151

Workflow file for this run

name: Test
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
schedule:
- cron: '0 8 * * 1' # Runs every monday at 12am Pacific time
jobs:
build:
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
os: [ ubuntu-latest ]
fail-fast: false
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .

Check failure on line 39 in .github/workflows/01_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/01_test.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
- name: Test and generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v4
with:
files: ./coverage.xml # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
- name: Notify on failure
if: failure() # This step will only run if any previous step fails
run: |
echo "Build or tests failed. Please check the logs."