Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated container for Github Action and reusable workflow #87

Merged
merged 14 commits into from
Jun 26, 2024
24 changes: 14 additions & 10 deletions .github/workflows/main_unit_tests_mpich.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Main unit tests with mpich"
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

Expand All @@ -12,15 +13,18 @@ jobs:
main_unit_tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/noaa-gfdl/pace_mpich:3.11.9
image: ghcr.io/noaa-gfdl/miniforge:mpich
steps:
- name: Checkout Pace repository
uses: actions/checkout@v4
with:
- name: Checkout Pace repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: setup env and run tests (test)
run: |
cp /home/scripts/setup_env.sh . && chmod +x setup_env.sh
cp /home/scripts/run_tests.sh . && chmod +x run_tests.sh
./setup_env.sh
./run_tests.sh
- name: setup env and generate input files
run: |
pip3 install --upgrade pip setuptools wheel
pip3 install -r requirements_dev.txt -c constraints.txt
cd tests/main && mkdir -p input && cd input
python3 ../../../examples/generate_eta_files.py
cd ../../../
- name:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to name this step?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Oliver, I'm so sorry! I decided to push in the reusable workflow changes to this PR, it might need your review again. 😇

run: pytest -x tests/main
26 changes: 0 additions & 26 deletions .github/workflows/main_unit_tests_openmpi.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pathspec==0.12.1
# via black
pexpect==4.9.0
# via ipython
platformdirs==2.6.2
platformdirs==3.10.0
# via
# black
# jupyter-core
Expand Down
Loading