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

Containerized CI and expansion to trigger external tests #51

Merged
merged 64 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
3d0c7ad
try test
Jun 5, 2024
3803a5b
conda init
Jun 5, 2024
45dace2
conda init
Jun 5, 2024
20bae61
echo y
Jun 5, 2024
bee9222
source
Jun 5, 2024
d0ff431
.
Jun 5, 2024
6881340
bash
Jun 5, 2024
d461ea1
.
Jun 5, 2024
a4ff3c1
try again
Jun 5, 2024
770b465
s
Jun 5, 2024
532d737
test
Jun 5, 2024
31cb3fd
update
Jun 5, 2024
b5d5694
mpiexec
Jun 5, 2024
eee00a4
remove extra space
Jun 5, 2024
ef72550
more fixes
Jun 5, 2024
047bb6a
separate build
Jun 6, 2024
3239abd
add untracked file
Jun 6, 2024
4164b28
update to develop
Jun 6, 2024
bffe029
Merge remote-tracking branch 'mkl/ci-testing_test' into ci-testing
Jun 6, 2024
c9d2379
remove push
Jun 6, 2024
c9fb6e6
concurrency
Jun 6, 2024
712045d
submodule woes
Jun 6, 2024
e19c1d8
test parallel
Jun 6, 2024
fea603b
undo separate build
Jun 6, 2024
e7a0adb
will this work
Jun 6, 2024
777aab4
trigger ci
Jun 11, 2024
4e56cca
attempt 1
Jun 12, 2024
2284554
test
Jun 13, 2024
889b99d
test
Jun 13, 2024
6ee554b
test
Jun 13, 2024
2eaa637
test
Jun 13, 2024
5cf9bca
test
Jun 13, 2024
ccbb873
test
Jun 13, 2024
ba05f2c
Update fv3_tests.yaml
mlee03 Jun 13, 2024
1efe582
Update fv3_tests.yaml
mlee03 Jun 13, 2024
54416c5
Update fv3_tests.yaml
mlee03 Jun 13, 2024
59630da
Update fv3_tests.yaml
mlee03 Jun 13, 2024
56fbc8b
test
Jun 13, 2024
f5a812b
test
Jun 13, 2024
49ad630
trigger fv3 workflow
Jun 13, 2024
ba5d216
remove push
Jun 13, 2024
63a2bb4
lint
Jun 13, 2024
d65eed5
test
Jun 13, 2024
67b2a2a
fix action name
Jun 20, 2024
7e0d08c
UNTRACKED FILE
Jun 20, 2024
93ff0dc
Merge branch 'develop' into ci-testing
fmalatino Jun 20, 2024
0bfba1c
add shield trigger
Jun 21, 2024
7bcc65e
crrect trigger
Jun 21, 2024
d39cca9
add pace tests
Jun 23, 2024
77e0f9a
test
Jun 23, 2024
89904e1
uniformity
Jun 23, 2024
e77346d
fix file
Jun 23, 2024
6b897e0
test
Jun 23, 2024
cb5581e
fix
Jun 23, 2024
3b1de9c
test
Jun 23, 2024
bc7f40a
change name
Jun 23, 2024
f25c138
Merge remote-tracking branch 'mkl/reusing_workflows' into ci-testing
Jun 24, 2024
75ea6f2
reusable workflows
Jun 24, 2024
703af3c
Merge remote-tracking branch 'mkl/ci-testing' into ci-testing
Jun 24, 2024
a1040a1
Merge remote-tracking branch 'origin/develop' into ci-testing
Jun 27, 2024
def2191
test
Jul 1, 2024
b7727da
test
Jul 2, 2024
cf4c36d
update tests
Jul 2, 2024
24b8675
update lint
Jul 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/fv3_translate_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "FV3 Translate tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
all_tests:
uses: NOAA-GFDL/pyFV3/.github/workflows/translate.yaml@develop
with:
ndsl_trigger: true
5 changes: 5 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

# cancel running jobs if theres a newer push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/pace_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "pace unit tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
pace_unit_tests:
uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop
with:
ndsl_trigger: true
10 changes: 10 additions & 0 deletions .github/workflows/shield_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "SHiELD Translate tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
shield_translate_tests:
uses: NOAA-GFDL/pySHiELD/.github/workflows/translate.yaml@develop
with:
ndsl_trigger: true
33 changes: 13 additions & 20 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
name: "Unit tests"
name: "NDSL Unit tests"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

# cancel running jobs if theres a newer push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
all:
all_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8.12, 3.11.7]
container:
image: ghcr.io/noaa-gfdl/miniforge:mpich
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Python
uses: actions/setup-python@v4.6.0
with:
python-version: ${{ matrix.python }}
- name: Install OpenMPI & Boost for gt4py
run: |
sudo apt-get install libopenmpi-dev libboost1.74-dev
- name: Install Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[test]
run: pip3 install .[test]
- name: Run serial-cpu tests
run: |
coverage run --rcfile=setup.cfg -m pytest -x tests
run: coverage run --rcfile=setup.cfg -m pytest -x tests
- name: Run parallel-cpu tests
run: |
mpirun -np 6 --oversubscribe coverage run --rcfile=setup.cfg -m mpi4py -m pytest -x tests/mpi
run: mpiexec -np 6 --oversubscribe coverage run --rcfile=setup.cfg -m mpi4py -m pytest -x tests/mpi
- name: Output code coverage
run: |
coverage combine
Expand Down