Skip to content

Commit

Permalink
Updated container for Github Action and reusable workflow (#87)
Browse files Browse the repository at this point in the history
* updated generate_eta_files

* remove notebook, add script

* lint

* correct path

* update constraints

* python3 execute

* Update main_unit_tests_mpich.yaml

* Update main_unit_tests_mpich.yaml

* update input directory

* get ..s correct

* lint

---------

Co-authored-by: mlee03 <[email protected]>
  • Loading branch information
mlee03 and mlee03 committed Jun 26, 2024
1 parent 3fa59a8 commit 392aa2d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 37 deletions.
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:
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

0 comments on commit 392aa2d

Please sign in to comment.