Skip to content

Commit

Permalink
Adding integration test with compilation to CI (#72)
Browse files Browse the repository at this point in the history
* Adding integration test to CI

* Adding step to install gcc on mac
  • Loading branch information
NewtonSander authored Jun 1, 2023
1 parent 87e2f7d commit 475c4d6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,14 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'

- name: Install gcc-11
if: matrix.os == 'macos-latest'
run: |
brew install gcc@11
- name: Run integration test
env:
DEVITO_ARCH: gcc-11
run: |
make test-integration
12 changes: 12 additions & 0 deletions tests/neurotechdevkit/test_compilation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest

import neurotechdevkit as ndk


@pytest.mark.integration
def test_compilation():
"""Will run a simulation requiring compilation."""
scenario_id = "scenario-0-v0"
scenario = ndk.make(scenario_id)
result = scenario.simulate_steady_state()
assert result.wavefield.shape == (101, 81, 59)

0 comments on commit 475c4d6

Please sign in to comment.