Skip to content

Commit

Permalink
Reorder Python wrapper requirements installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Dec 27, 2024
1 parent 8dad883 commit d239b7b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ jobs:
with:
submodules: 'recursive'


- name: Install python wrapper requirements
run: python -m pip install -r requirements.txt

- name: Setup MPI
if: matrix.mpi=='Yes' && matrix.compiler.name=='intel'
uses: mpi4py/setup-mpi@v1
with:
mpi: 'intelmpi'

- name: Install required packages
- name: Install gcc required packages
if: matrix.compiler.name=='gcc'
run: |
sudo apt update
Expand All @@ -76,15 +80,10 @@ jobs:
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
cmake --build build -j
- name: Run fdtd unit tests
run: |
build/bin/fdtd_tests
- name: Install python wrapper requirements
run: |
python -m pip install -r requirements.txt
- name: Run unit tests
run: build/bin/fdtd_tests

- name: Run all wrapper tests
- name: Run python tests
env:
SEMBA_FDTD_ENABLE_MTLN: ${{ matrix.mtln }}
SEMBA_FDTD_ENABLE_HDF: ${{ matrix.hdf }}
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/windows-intelLLVM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
builds-and-tests:
runs-on: windows-latest
strategy:
matrix:
matrix:
compiler: [ {name: 'intel', version: '2024.0'} ]
build-type: ["Debug", "Release"]
mpi: ["No"]
mtln: ["Yes"]
Expand All @@ -28,13 +29,19 @@ jobs:
mtln: "No"
hdf: "Yes"

fail-fast: false

name: ${{matrix.build-type}}-mpi(${{matrix.mpi}})-mtln(${{matrix.mtln}})-hdf(${{matrix.hdf}})

steps:

- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install python wrapper requirements
run: |
python -m pip install -r requirements.txt
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
Expand All @@ -45,8 +52,8 @@ jobs:
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: intel
version: '2024.0'
compiler: ${{ matrix.compiler.name }}
version: ${{ matrix.compiler.version }}

- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
Expand All @@ -60,15 +67,10 @@ jobs:
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
cmake --build build -j
- name: Install python wrapper requirements
run: |
python -m pip install -r requirements.txt
- name: Run all wrapper tests (except codemodel)
if: matrix.mtln=='Yes'
- name: Run python tests (except codemodel)
env:
SEMBA_FDTD_ENABLE_MTLN: ${{ matrix.mtln }}
SEMBA_FDTD_ENABLE_HDF: ${{ matrix.hdf }}
run: python -m pytest -m 'not codemodel' test/

- name: Run non-mtln wrapper tests
if: matrix.mtln=='No'
run: python -m pytest -m 'not mtln' test/

0 comments on commit d239b7b

Please sign in to comment.