CI test #1777
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 test | |
# Trigger the workflow on push and daily cron job | |
on: | |
push: | |
schedule: | |
- cron: '5 0 * * *' | |
jobs: | |
shellcheck: | |
# See https://github.com/koalaman/shellcheck/wiki | |
# for explanations of ShellCheck error codes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: ShellCheck | |
run: | | |
shellcheck -x $(find -name '*.sh') | |
build: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install prerequisites | |
run: | | |
[[ $(uname) == Linux ]] && sudo apt-get update && sudo apt-get install -y openmpi-bin libopenmpi-dev libgl1-mesa-glx libegl1 | |
[[ $(uname) == Darwin ]] && brew install openmpi | |
./install.sh | |
- name: Version info | |
run: | | |
source miniforge3/bin/activate ceesd | |
./version.sh --requirements-file=./mirgecom/requirements.txt --output-requirements=myreq.txt --output-conda-env=myenv.yml | |
# Don't build pyopencl as that is difficult | |
cat myreq.txt | sed /pyopencl/d > req.txt | |
pip install -r req.txt | |
- name: Run update | |
run: | | |
./pull-packages.sh -x | |
- name: Reinstall emirge env with new requirements.txt | |
run: | | |
source miniforge3/bin/activate ceesd | |
conda clean -a | |
conda deactivate | |
./install.sh --env-name=reinstall_env --pip-pkgs=req.txt | |
- name: Reinstall conda env with new env file | |
run: | | |
./install.sh --conda-env=myenv.yml --pip-pkgs=req.txt | |
- name: Run examples | |
run: | | |
source miniforge3/bin/activate ceesd | |
./mirgecom/examples/run_examples.sh ./mirgecom/examples | |