From 25eab9c5ccbc7b0203329adb8f7d12eb259a682c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 9 Oct 2024 10:00:33 -0700 Subject: [PATCH] CI: Fix Python on macOS --- .github/workflows/macos.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e0c6efdc9..a646d91e0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -16,12 +16,15 @@ jobs: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + name: Install Python + with: + python-version: '3.x' - name: install dependencies run: | set +e brew unlink gcc brew update - brew install --overwrite python brew install adios2 brew install ccache brew install cmake @@ -33,11 +36,6 @@ jobs: 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 -r requirements_mpi.txt @@ -65,8 +63,6 @@ jobs: export CCACHE_SLOPPINESS=time_macros ccache -z - source py-venv/bin/activate - cmake -S . -B build \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DImpactX_FFT=ON \ @@ -79,15 +75,12 @@ 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