-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add D_SW, FvTp2d and Remapping translate on Numpy/dace:cpu to the CI
- Loading branch information
1 parent
e67f6d8
commit 18cb9c7
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "Unit tests" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
all: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.11.7] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
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 .[ndsl] | ||
- name: Download data | ||
run: | | ||
mkdir -p test_data | ||
cd test_data | ||
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6_ranks_standard.FvTp2d.tar.gz | ||
tar -xzvf 8.1.3_c12_6_ranks_standard.FvTp2d.tar.gz | ||
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6_ranks_standard.D_SW.tar.gz | ||
tar -xzvf 8.1.3_c12_6_ranks_standard.D_SW.tar.gz | ||
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6_ranks_standard.Remapping.tar.gz | ||
tar -xzvf 8.1.3_c12_6_ranks_standard.Remapping.tar.gz | ||
cd - | ||
- name: Numpy FvTp2d | ||
run: | | ||
pytest \ | ||
-v -s --data_path=./test_data/8.1.3/c12_6ranks_standard/dycore \ | ||
--backend=FvTp2d \ | ||
--threshold_overrides_file=./tests/savepoint/translate/overrides/standard.yaml \ | ||
./tests/savepoint | ||
- name: Numpy D_SW | ||
run: | | ||
pytest \ | ||
-v -s --data_path=./test_data/8.1.3/c12_6ranks_standard/dycore \ | ||
--backend=D_SW \ | ||
--threshold_overrides_file=./tests/savepoint/translate/overrides/standard.yaml \ | ||
./tests/savepoint | ||
- name: Numpy Remapping | ||
run: | | ||
pytest \ | ||
-v -s --data_path=./test_data/8.1.3/c12_6ranks_standard/dycore \ | ||
--backend=Remapping \ | ||
--threshold_overrides_file=./tests/savepoint/translate/overrides/standard.yaml \ | ||
./tests/savepoint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,7 @@ celerybeat.pid | |
|
||
# Environments | ||
.env | ||
.venv | ||
.venv* | ||
env/ | ||
venv/ | ||
ENV/ | ||
|