Skip to content

Commit

Permalink
do codecov only for np=1
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Dec 14, 2023
1 parent e31a11b commit f2380d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
export CI_PLOTS_PATH=plots/$arbitrarily_selected_artefact_set
mkdir -p $CI_PLOTS_PATH
fi
if [ "${{ matrix.disable-jit }}" == "1" ]; then
if [ "${{ matrix.disable-jit }}" == "1" ] && [ "${{ matrix.mpi-np }}" == "1" ]; then
export COV_ARGS="--cov=./ --cov-report=xml"
pip install pytest-cov
fi
Expand All @@ -139,7 +139,8 @@ jobs:
with:
name: plots
path: plots
- uses: codecov/codecov-action@v3
- if: matrix.mpi-np == 1 && matrix.disable-jit == 1
uses: codecov/codecov-action@v3
env:
PLATFORM=${{ matrix.platform }}
PYTHON_VERSION=${{ matrix.python-version }}
Expand Down

0 comments on commit f2380d5

Please sign in to comment.