-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (41 loc) · 1.17 KB
/
python-tests.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
# .github/workflows/python-tests.yml
name: LaCE automated testing
on:
push:
branches: '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip==24.0
pip install fdasrsf
pip install setuptools
pip install pytest wheel pytest-cov
- name: Install lace
run: pip install -e .
# Run the tests and specify the temporary directory as output_dir
- name: Run tests
timeout-minutes: 45
run: |
pytest tests/test_lace.py
pytest tests/plot_mpg_gp.py
pytest tests/plot_mpg_nn.py
- name: List generated plots
run: |
echo "Files in the data/tmp_validation_figures directory:"
ls data/tmp_validation_figures/Gadget
# Archive the generated plots
- name: Archive generated plots
uses: actions/upload-artifact@v4
with:
name: validation-figures
path: data/tmp_validation_figures/Gadget/*.png