Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/main_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,21 @@ jobs:
path: pace
ref: develop

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11.13
conda-remove-defaults: true
auto-activate-base: false
activate-environment: pace_test_env
python-version: '3.11'

- name: Install mpi (MPICH flavor)
run: pip install mpich

- name: Install numpy==1.26.4
# Front-load installing numpy to force its usage in the radiation
# scheme of pySHiELD.
# TODO: This is an ugly hack and it should be cleaned up latest once
# we add support for numpy >= 2.0
run: pip install numpy==1.26.4

- name: "External trigger: Remove existing component in pace/develop"
if: ${{ inputs.component_trigger }}
run: rm -rf ${GITHUB_WORKSPACE}/pace/${{inputs.component_name}}
Expand All @@ -64,7 +68,6 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/pace
pip install .[test]
pip install numpy==1.26.4

- name: Print versions
run: |
Expand Down