Skip to content

Merge pull request #21 from kusterlab/20-handle-multiple-flanking-seq… #54

Merge pull request #21 from kusterlab/20-handle-multiple-flanking-seq…

Merge pull request #21 from kusterlab/20-handle-multiple-flanking-seq… #54

Workflow file for this run

name: Unit tests
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9']
poetry-version: [1.5.1]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Installing package
run: poetry install
- name: Generate coverage report
run: |
poetry run pytest --cov=psite_annotation --cov-report xml --cov-report term -s tests/unit_tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml,!./cache
flags: unittests
name: codecov-umbrella
verbose: true