Skip to content

Commit

Permalink
Temporarily skipping generating coverage report since it hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
lehner authored May 11, 2024
1 parent 5416950 commit 33c7c74
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/github-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ jobs:
cd gpt
export PYTHONPATH=/usr/local/lib/python${{ matrix.python-version}}/site-packages:/usr/local/lib64/python${{ matrix.python-version}}/site-packages
export WORK_DIR=$(mktemp -d)
./tests/run "coverage run" "--mpi_split 1.1.1.1"
./tests/run "run" "--mpi_split 1.1.1.1" # run -> coverage run
- name: Run tests
if: matrix.mpi == 'openmpi'
Expand All @@ -411,24 +411,24 @@ jobs:
export PYTHONPATH=/usr/local/lib/python${{ matrix.python-version}}/site-packages:/usr/local/lib64/python${{ matrix.python-version}}/site-packages
export WORK_DIR=$(mktemp -d)
mpirun -np 2 -mca btl ^openib -bind-to core python tests/core/scalar.py --mpi 1.1.1.2
./tests/run "mpirun -np 1 -mca btl ^openib coverage run" "--mpi_split 1.1.1.1"
./tests/run "mpirun -np 2 -bind-to core -mca btl ^openib coverage run" "--mpi 1.1.1.2 --mpi 1.1.2 --mpi 2 --mpi_split 1.1.1.1 --shm 256"
./tests/run "mpirun -np 1 -mca btl ^openib run" "--mpi_split 1.1.1.1"
./tests/run "mpirun -np 2 -bind-to core -mca btl ^openib run" "--mpi 1.1.1.2 --mpi 1.1.2 --mpi 2 --mpi_split 1.1.1.1 --shm 256"
- name: Run tests
if: matrix.mpi == 'mpich'
run: |
export PYTHONPATH=/usr/local/lib/python${{ matrix.python-version}}/site-packages:/usr/local/lib64/python${{ matrix.python-version}}/site-packages
cd gpt
export WORK_DIR=$(mktemp -d)
./tests/run "mpirun -np 1 coverage run" "--mpi_split 1.1.1.1"
./tests/run "mpirun -np 2 -bind-to core coverage run" "--mpi 1.1.1.2 --mpi 1.1.2 --mpi 2 --mpi_split 1.1.1.1 --shm 256"
./tests/run "mpirun -np 1 run" "--mpi_split 1.1.1.1"
./tests/run "mpirun -np 2 -bind-to core run" "--mpi 1.1.1.2 --mpi 1.1.2 --mpi 2 --mpi_split 1.1.1.1 --shm 256"
- name: Coverage report
run: |
cd gpt
coverage combine
coverage report -m # Print coverage report to screen
coverage xml # Export coverage report as XML file, for codecov.io
#coverage combine
#coverage report -m # Print coverage report to screen
#coverage xml # Export coverage report as XML file, for codecov.io
- name: Upload coverage to Codecov
env:
Expand All @@ -439,7 +439,7 @@ jobs:
run: |
cd gpt
if [ "${{ secrets.CODECOV_USERNAME }}" != "" ] \
&& [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/master" ]
&& [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/master" ] && 0
then
bash <(curl -s https://codecov.io/bash) \
-f ./coverage.xml
Expand Down

0 comments on commit 33c7c74

Please sign in to comment.