Skip to content

Commit

Permalink
[WIP] Fixing intel workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Dec 14, 2024
1 parent 6e3d227 commit 1247ad3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
mpi: "Yes"
mtln: "No"

name: ubuntu ${{matrix.build-type}} - mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}}
name: ubuntu-gnu ${{matrix.build-type}} - mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}}

steps:
- name: Checkout
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/ubuntu-intel.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: ubuntu-intel

on:
push:
branches:
- dev

pull_request:
branches:
- main
Expand All @@ -16,8 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
optimization-type: ["Debug", "Release"]
mpi-build: ["No", "Yes"]
build-type: ["Debug", "Release"]
mpi: ["Yes"]
mtln: ["No"]


name: ubuntu-intel ${{matrix.build-type}} - mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}}

steps:

Expand All @@ -39,7 +39,7 @@ jobs:

- name: CMake build
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.optimization-type}} -DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi-build}} -DSEMBA_FDTD_ENABLE_MTLN=NO
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} -DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
cmake --build build -j
- name: Run fdtd unit tests
Expand All @@ -51,7 +51,10 @@ jobs:
run: |
python -m pip install -r requirements.txt
- name: Run wrapper tests
timeout-minutes: 60
run: |
python -m pytest test
- name: Run all wrapper tests
if: matrix.mtln=='Yes'
run: python -m pytest test/

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

0 comments on commit 1247ad3

Please sign in to comment.