-
Notifications
You must be signed in to change notification settings - Fork 26
71 lines (61 loc) · 2.53 KB
/
CI_every_PR.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
63
64
65
66
67
68
69
70
71
name: CI_every_PR
# We run CI on push commits on all branches
on: [pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: CI_every_PR
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
# https://github.com/marketplace/actions/setup-miniconda
with:
miniconda-version: "latest"
channels: conda-forge
auto-update-conda: true
# python-version: 3.8
# environment-file: environment.yml
- name: Install test environment
shell: pwsh # putting in a shell command makes for compile linking problems later
# (if you use the shell here, cannot use 'compiler' package, but mpi only seems to work with it)
run: |
bash ./install.sh test-environment
conda activate test-environment
conda list
# - name: Run parallel regression tests within WindSE
# shell: pwsh
# run: |
# conda activate test-environment
# pytest -sv --cov=windse tests/test_regression_parallel.py
# - name: Run parallel regression tests within WindSE
# shell: pwsh
# run: |
# conda activate test-environment
# cd tests/9-Regression
# mpirun -n 2 windse run ALM_Unsteady.yaml -p general:name:ALM_Unsteady_np_2
# - name: Run parallel regression tests within WindSE
# shell: pwsh
# run: |
# conda activate test-environment
# cd tests/9-Regression
# mpirun -n 2 python -u ../../windse_driver/driver.py run ALM_Unsteady.yaml -p general:name:ALM_Unsteady_np_2
# # mpirun -n 2 python -u ../../windse_driver/driver.py run Floating_ALM.yaml -p general:name:Floating_ALM_np_2
- name: Run all regression tests within WindSE
shell: pwsh
run: |
conda activate test-environment
pytest -sv --cov=windse --cov-append tests/test_regression.py
- name: Run all documented demos within WindSE
shell: pwsh
run: |
conda activate test-environment
pytest -sv --cov=windse --cov-append tests/test_demos.py
# Run coveralls
- name: Run coveralls
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
conda activate test-environment
coveralls --service=github