-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (52 loc) · 1.67 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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: Cache UCE downloaded files
uses: actions/cache@v3
with:
path: /home/runner/.cache/helical/models/uce
key: ${{ runner.os }}-downloads-${{ hashFiles('**/ci/download_all.py') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
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-branch --cov=helical ci/ --cov-report=term
# 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