Pruning Integration #129
Workflow file for this run
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: eFlows4HPC Pillar II ESM | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'Pillar_II/esm/**' | |
push: | |
paths: | |
- 'Pillar_II/esm/**' | |
jobs: | |
lint: | |
runs-on: 'ubuntu-latest' | |
timeout-minutes: 15 | |
env: | |
EXTRAE_MPI_HEADERS: /usr/include/x86_64-linux-gnu/mpi | |
steps: | |
- name: Apt-Get Install | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y shellcheck libboost-all-dev libopenmpi-dev | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Shellchecker | |
run: | | |
cd Pillar_II/esm/ | |
find . -name "*.sh" -exec shellcheck --external-sources {} \; | |
- name: Install | |
run: | | |
cd Pillar_II/esm/ | |
pip install -r requirements.txt | |
- name: MyPy | |
run: | | |
cd Pillar_II/esm/ | |
mypy src | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ 'ubuntu-latest' ] | |
python-version: [ '3.10' ] | |
env: | |
TZ: ${{ matrix.time-zone }} | |
PYTEST_ADDOPTS: --cov --cov-append --color=yes | |
EXTRAE_MPI_HEADERS: /usr/include/x86_64-linux-gnu/mpi | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Apt-Get Install | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libboost-all-dev libopenmpi-dev | |
- name: Install | |
run: | | |
cd Pillar_II/esm/ | |
pip install -r requirements.txt | |
- name: Python Unit Tests | |
timeout-minutes: 3 | |
run: | | |
cd Pillar_II/esm/ | |
pytest src tests/ | |
- name: Shell Unit Tests | |
timeout-minutes: 3 | |
run: | | |
cd Pillar_II/esm/ | |
docker run --rm -v "${PWD}:/code" bats/bats:latest --verbose-run --recursive ./ |