-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mirror Repository and run GitHub CI at HZDR (#1032)
* Update ci worflow action * Update codecov.yml
- Loading branch information
1 parent
83b7d57
commit a593334
Showing
6 changed files
with
32 additions
and
38 deletions.
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
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
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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
test: | ||
image: ubuntu:20.04 | ||
image: nvidia/cuda:11.6.2-runtime-ubuntu20.04 | ||
tags: | ||
- heat | ||
- cuda | ||
- x86_64 | ||
script: | ||
- apt update | ||
- apt -y install build-essential python3-pip curl | ||
- DEBIAN_FRONTEND=noninteractive apt -y install libopenmpi-dev openmpi-bin openmpi-doc | ||
- apt -y install libhdf5-openmpi-dev libpnetcdf-dev | ||
- pip install pytest coverage | ||
- pip install .[hdf5,netcdf] | ||
- COVERAGE_FILE=report/cov/coverage1 mpirun --allow-run-as-root -n 1 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report1.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage2 mpirun --allow-run-as-root -n 3 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report2.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage5 mpirun --allow-run-as-root -n 5 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report5.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage8 mpirun --allow-run-as-root -n 8 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report8.xml heat/ | ||
- coverage combine report/cov/* | ||
- coverage report | ||
- coverage xml | ||
- curl -s https://codecov.io/bash | bash -s -- -c -F unit -f coverage.xml -t $CODECOV_TOKEN || echo "Codecov failed to upload" | ||
- apt update | ||
- apt -y install build-essential python3-pip curl git | ||
- DEBIAN_FRONTEND=noninteractive apt -y install libopenmpi-dev openmpi-bin openmpi-doc | ||
- apt -y install libhdf5-openmpi-dev libpnetcdf-dev | ||
- pip install pytest coverage | ||
- pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116 | ||
- pip install .[hdf5,netcdf] | ||
- COVERAGE_FILE=report/cov/coverage1 HEAT_TEST_USE_DEVICE=cpu mpirun --allow-run-as-root -n 1 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report1.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage2 HEAT_TEST_USE_DEVICE=gpu mpirun --allow-run-as-root -n 3 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report3.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage5 HEAT_TEST_USE_DEVICE=cpu mpirun --allow-run-as-root -n 5 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report5.xml heat/ | ||
- COVERAGE_FILE=report/cov/coverage8 HEAT_TEST_USE_DEVICE=gpu mpirun --allow-run-as-root -n 6 coverage run --source=heat --parallel-mode -m pytest --junitxml=report/test/report6.xml heat/ | ||
- coverage combine report/cov/* | ||
- coverage report | ||
- coverage xml | ||
- curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
- chmod +x codecov | ||
- ./codecov -F unit -f ./coverage.xml -t $CODECOV_TOKEN -Z | ||
artifacts: | ||
when: always | ||
paths: | ||
- report/test/report*.xml | ||
reports: | ||
junit: report/test/report*.xml |
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
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
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