-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: composite python. Temp disable macOS
GHA macOS images continue to have macOS Xcode SDK issues
- Loading branch information
Showing
3 changed files
with
60 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
using: 'composite' | ||
|
||
steps: | ||
steps: | ||
|
||
- name: GCC compiler (macOS) | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo "CC=gcc-13" >> $GITHUB_ENV | ||
echo "CXX=g++-13" >> $GITHUB_ENV | ||
echo "FC=gfortran-13" >> $GITHUB_ENV | ||
- name: GCC compiler (macOS) | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo "CC=gcc-13" >> $GITHUB_ENV | ||
echo "CXX=g++-13" >> $GITHUB_ENV | ||
echo "FC=gfortran-13" >> $GITHUB_ENV | ||
- name: Checkout GemGI (for simulation config.nml inputs) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemci | ||
path: ${{ github.workspace }}/gemci | ||
- name: Checkout GemGI (for simulation config.nml inputs) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemci | ||
path: ${{ github.workspace }}/gemci | ||
|
||
- name: Cache install Gemini3D | ||
id: cache-gemini | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ env.CMAKE_INSTALL_PREFIX }} | ||
key: ${{ runner.os }}-gemini-${{ hashFiles('gemini3d/CMakeLists.txt') }} | ||
# weak check that gemini3d has changed since last cache update | ||
- name: Cache install Gemini3D | ||
id: cache-gemini | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ env.CMAKE_INSTALL_PREFIX }} | ||
key: ${{ runner.os }}-gemini-${{ hashFiles('gemini3d/CMakeLists.txt') }} | ||
# weak check that gemini3d has changed since last cache update | ||
|
||
- name: Checkout Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemini3d | ||
path: gemini3d | ||
submodules: true | ||
- name: Checkout Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: gemini3d/gemini3d | ||
path: gemini3d | ||
submodules: true | ||
|
||
- name: non-cache Install Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
cmake -B build | ||
cmake --build build | ||
cmake --install build | ||
working-directory: gemini3d | ||
- name: non-cache Install Gemini3D | ||
if: steps.cache-gemini.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
cmake -B build | ||
cmake --build build | ||
cmake --install build | ||
working-directory: gemini3d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
runs: | ||
|
||
using: 'composite' | ||
|
||
steps: | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python packages | ||
run: python -m pip install .[tests,plots] | ||
shell: bash | ||
|
||
- name: Unit and Integration Tests | ||
run: pytest ${{ github.workspace }} | ||
shell: bash | ||
env: | ||
GEMCI_ROOT: ${{ github.workspace }}/gemci |