chore: Upate unit tests #184
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
container: | |
image: python:${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel coverage | |
pip install virtualenv tox==3.26.0 tox-wheel==1.0.0 tox-gh-actions | |
- name: Build, install and run unit tests | |
run: | | |
pip install -r requirements.txt | |
pip install --force-reinstall numpy | |
pip install --no-cache-dir --force-reinstall --no-binary :all: cyvcf2==0.30.14 | |
coverage run -m unittest discover vafator.tests | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 |