Include more unittests #57
Workflow file for this run
This file contains 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: CI Pipeline | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11.8 | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
pip install -r requirements-dev.txt | |
pip install . | |
# First download before tests as they make use of the downloaded files | |
- name: Download all files | |
run: | | |
python ci/download_all.py | |
- name: Execute unittests | |
run: | | |
pytest --cov-report=html:html_cov --cov-branch --cov=helical ci/ | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-report | |
path: html_cov/ | |
# Does not seem to work but would be nice to have | |
# - name: Pytest coverage comment | |
# uses: MishaKav/pytest-coverage-comment@main | |
# with: | |
# pytest-coverage-path: ./pytest-coverage.txt | |
# junitxml-path: ./pytest.xml | |
# - name: Execute scGPT | |
# run: | | |
# python examples/run_scgpt.py | |
# - name: Execute Geneformer | |
# run: | | |
# python examples/run_geneformer.py | |
# - name: Execute UCE | |
# run: | | |
# python examples/run_uce.py | |
# - name: Execute Hyena | |
# run: | | |
# python examples/run_hyena_dna.py |