Skip to content

Commit

Permalink
More build
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Jul 18, 2024
1 parent 4aa8a70 commit 3189ca3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/conda-env-oneapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ dependencies:
- pugixml
- boost
- kahip
- catch2
- pytest
- pytest-xdist
- matplotlib
51 changes: 18 additions & 33 deletions .github/workflows/oneapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,36 +95,21 @@ jobs:
ctest --output-on-failure -R unittests
mpiexec -n 2 ctest --output-on-failure -R unittests
# - name: Build and run DOLFINx C++ regression tests (serial and MPI (np=2))
# run: |
# . /opt/intel/oneapi/setvars.sh
# cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build/demo/ -S cpp/demo/
# cmake --build build/demo
# cd build/demo
# ctest -R demo -R serial
# ctest -R demo -R mpi_2

# - name: Build DOLFINx Python interface
# run: |
# . /opt/intel/oneapi/setvars.sh
# pip -v install --check-build-dependencies --no-build-isolation --config-settings=cmake.build-type="Developer" python/
# - name: Install Python test dependencies
# run: |
# . /opt/intel/oneapi/setvars.sh
# pip install matplotlib pytest pytest-xdist
# - name: Run DOLFINx demos (Python, serial)
# run: |
# . /opt/intel/oneapi/setvars.sh
# pytest -v -n=2 -m serial --durations=10 python/demo/test.py
# - name: Run DOLFINx demos (Python, MPI (np=2))
# run: |
# . /opt/intel/oneapi/setvars.sh
# pytest -m mpi --num-proc=2 python/demo/test.py
# - name: Run DOLFINx Python unit tests (serial)
# run: |
# . /opt/intel/oneapi/setvars.sh
# pytest -n=auto --durations=50 python/test/unit
# - name: Run DOLFINx Python unit tests (MPI, np=2)
# run: |
# . /opt/intel/oneapi/setvars.sh
# mpiexec -n 2 pytest python/test/unit
- name: Build and run DOLFINx C++ regression tests (serial and MPI (np=2))
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build/demo/ -S cpp/demo/
cmake --build build/demo
cd build/demo
ctest -R demo -R serial
ctest -R demo -R mpi_2
- name: Build DOLFINx Python interface
run: pip -v install --check-build-dependencies --no-build-isolation --config-settings=cmake.build-type="Developer" python/
- name: Run DOLFINx demos (Python, serial)
run: pytest -v -n=2 -m serial --durations=10 python/demo/test.py
- name: Run DOLFINx demos (Python, MPI (np=2))
run: pytest -m mpi --num-proc=2 python/demo/test.py
- name: Run DOLFINx Python unit tests (serial)
run: pytest -n=auto --durations=50 python/test/unit
- name: Run DOLFINx Python unit tests (MPI, np=2)
run: mpiexec -n 2 pytest python/test/unit

0 comments on commit 3189ca3

Please sign in to comment.