optional gmsh
integration for rectangles and boxes.
#343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
conda install -n base mamba | |
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 |