Skip to content

Merge pull request #18 from BDI-pathogens/refactoring #119

Merge pull request #18 from BDI-pathogens/refactoring

Merge pull request #18 from BDI-pathogens/refactoring #119

Workflow file for this run

name: Coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage codecov mock mock_alchemy pytest
pip install .
- name: Run coverage
run: |
coverage run --source seq_dbutils -m pytest
coverage report -m
coverage xml
- name: Run codecov
if: success()
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
codecov