Skip to content

Commit

Permalink
CI: Unbreak macOS (#461)
Browse files Browse the repository at this point in the history
* CI: Unbreak macOS

Try to unbreak broken python on macOS CI..

* Python: Use a fresh Virtualenv

Brew Python is too broken/inconsistent in packages like
`six`, `matplotlib`, `pandas` et al.
  • Loading branch information
ax3l authored Nov 9, 2023
1 parent aa3f36d commit 38829dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
brew install ninja
brew install open-mpi
brew install pkg-config
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade virtualenv
python3 -m venv py-venv
source py-venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build packaging setuptools wheel pytest
python3 -m pip install --upgrade pytest
Expand All @@ -64,6 +70,8 @@ jobs:
ccache-macos-appleclang-
- name: build ImpactX
run: |
source py-venv/bin/activate
cmake -S . -B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DImpactX_PYTHON=ON \
Expand All @@ -72,12 +80,15 @@ jobs:
- name: run tests
run: |
source py-venv/bin/activate
ctest --test-dir build --output-on-failure -E pytest.AMReX
- name: run installed python module
run: |
cmake --build build --target pip_install
source py-venv/bin/activate
python3 examples/fodo/run_fodo.py
- name: run installed app
Expand Down

0 comments on commit 38829dc

Please sign in to comment.