Skip to content

Ready for v0.5.3

Ready for v0.5.3 #33

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