Skip to content

Merge pull request #11 from goehringlab/dependencies #92

Merge pull request #11 from goehringlab/dependencies

Merge pull request #11 from goehringlab/dependencies #92

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
workflow_call:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
python-version: [ "3.11", "3.12" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,tensorflow,jax]
- name: Test with pytest
run: pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage.xml
verbose: true