-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.32 KB
/
main.yaml
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
name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: false
# NOTE to save on bandwidth costs, GitHub Action will not use GitHub's own LFS
- name: Fetch test-data
# NOTE to save on bandwidth costs, pull data from BSSE's GitLab LFS instead
run: |
git config --file .lfsconfig lfs.url "https://git.bsse.ethz.ch/cbg/viruses/lollipop.git/info/lfs"
git lfs install
git lfs pull
git lfs checkout
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Poetry Dynamic Versioning
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build package
run: |
poetry install --extras "cli"
poetry build
- name: Test package
run: |
poetry run pytest -v
- name: Lint package
run: poetry run black --check --diff .
- name: Archive test output
uses: actions/upload-artifact@v3
with:
name: test_curves
path: |
test_results.*
if-no-files-found: error