Skip to content

Commit

Permalink
CI: pin macos version to macs-12 and disable pytest cache for mpi runs (
Browse files Browse the repository at this point in the history
#116)

* pin macos version to macs-12

* pin pytest version to <8.2

* even older pytest

* remove pytest version pin; add -p no:cacheprovider to avoid using cache when running from mpiexec
  • Loading branch information
slayoo authored May 4, 2024
1 parent d9bd71d commit 6f7cdf3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ jobs:
tests_setup:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
platform: [ubuntu-latest, macos-12]
mpi: [ 'mpich', 'openmpi', 'intelmpi']
python-version: ["3.10"]
exclude:
# as of time of writing, mpi4py/setup-mpi does not support it
- platform: macos-latest
- platform: macos-12
mpi: intelmpi

# issues with: *** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
- platform: ubuntu-latest
mpi: intelmpi

# https://github.com/Homebrew/homebrew-core/issues/26974
- platform: macos-latest
- platform: macos-12
mpi: mpich

runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -154,22 +154,22 @@ jobs:
needs: [zenodo_json, pylint, pdoc, precommit, tests_setup]
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
platform: [ubuntu-latest, macos-12]
mpi: [ 'mpich', 'openmpi', 'intelmpi']
python-version: ["3.10"]
disable-jit: [1, 0]
mpi-np: [1, 2, 3]
exclude:
# as of time of writing, mpi4py/setup-mpi does not support it
- platform: macos-latest
- platform: macos-12
mpi: intelmpi

# issues with: *** The MPI_Comm_rank() function was called before MPI_INIT was invoked.
- platform: ubuntu-latest
mpi: intelmpi

# https://github.com/Homebrew/homebrew-core/issues/26974
- platform: macos-latest
- platform: macos-12
mpi: mpich

fail-fast: false
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
export COV_ARGS="--cov=PyMPDATA-MPI --cov=examples --cov=scenarios --cov-report=xml"
pip install pytest-cov
fi
NUMBA_NUM_THREADS=3 mpiexec $_mpiexec_args -n ${{ matrix.mpi-np }} python -m pytest $COV_ARGS --timeout=600 --timeout_method=thread -s -vv -We tests/local;
NUMBA_NUM_THREADS=3 mpiexec $_mpiexec_args -n ${{ matrix.mpi-np }} python -m pytest -p no:cacheprovider $COV_ARGS --timeout=600 --timeout_method=thread -s -vv -We tests/local;
- uses: actions/upload-artifact@v2
with:
name: plots
Expand Down

0 comments on commit 6f7cdf3

Please sign in to comment.