-
Notifications
You must be signed in to change notification settings - Fork 22
/
action.yml
35 lines (31 loc) · 1.02 KB
/
action.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
name: "test"
description: "Test mcfost"
runs:
using: "composite"
steps:
- name: run mcfost set up (downloads additional files)
shell: bash
working-directory: src
env:
MCFOST_UTILS: ${{ github.workspace }}/utils
run: ./mcfost -setup
- name: download reference data for test suite
shell: bash
working-directory: test_suite
run: |
wget -nv https://ipag.osug.fr/~pintec/mcfost/test_data_0c484a1a905c13bea4c3bc0494ba288daddbe779.tgz
rm -rf test_data
tar xzf test_data_0c484a1a905c13bea4c3bc0494ba288daddbe779.tgz
# Only do this if not in manylinux docker container
- uses: actions/setup-python@v5
if: env.AUDITWHEEL_PLAT == ''
with:
python-version: "3.11"
- name: test current commit against reference data
shell: bash
run: |
export MCFOST_UTILS=$PWD/utils
export PATH=/opt/python/cp311-cp311/bin/:$PATH
cd test_suite
python -m pip install -r requirements.txt
python -m pytest -v