-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (60 loc) · 1.66 KB
/
tests.yml
File metadata and controls
71 lines (60 loc) · 1.66 KB
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
63
64
65
66
67
68
69
70
71
name: tests
on:
pull_request:
branches: [main]
push:
jobs:
tests:
name: 'Run tests on py${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.6'
- python-version: '3.7'
- python-version: '3.8'
- python-version: '3.9'
- python-version: '3.10'
- python-version: '3.11'
- python-version: '3.12'
steps:
- name: Clone vplot repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: vplot
environment-file: environment.yml
# TODO: Remove this step in production
- name: Install vplanet
shell: bash -l {0}
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
python -m pip install --no-deps vplanet
- name: Install vplot
shell: bash -l {0}
run: |
python -m pip install -U pip
python -m pip install -e .
- name: Run vplanet
shell: bash -l {0}
run: |
for f in docs/notebooks/examples/*/vpl.in
do
pushd ${f%/*}
vplanet vpl.in
popd
done
- name: Run tests
shell: bash -l {0}
run: python -m pytest -v tests --junitxml=junit/test-results.xml
- name: Publish unit test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: junit/test-*.xml
comment_mode: update last