-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for PROTEUS (#149)
* Fix missing font issue * Add integration test * Install MORS, JANUS, SOCRATES * Add socrates dependencies * Download frostflow * Download SOCRATES * Pre-download all files * Fix mors: command not found * Fix mors: command not found * Add sanity check * Switch JANUS/MORS install order * Try entire workflow * Fix env var * Download SPIDER * Build SPIDER * Set PETSC_DIR * Try other PETSC_DIR * Fix make command * Avoid installing petsc/spider * Fix skip * Trigger workflow * Add comment to tests
- Loading branch information
1 parent
851fc7c
commit fa0363a
Showing
3 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from __future__ import annotations | ||
|
||
import os | ||
from pathlib import Path | ||
|
||
import pytest | ||
from helpers import PROTEUS_ROOT | ||
|
||
from proteus import Proteus | ||
|
||
if os.getenv('CI'): | ||
# https://github.com/FormingWorlds/PROTEUS/pull/149 | ||
pytest.skip(reason='No way of currently testing this on the CI.', allow_module_level=True) | ||
|
||
|
||
def test_dummy_run(): | ||
config_path = PROTEUS_ROOT / 'input' / 'dummy.toml' | ||
|
||
runner = Proteus(config_path=config_path) | ||
|
||
runner.config['log_level'] = 'WARNING' | ||
runner.config['plot_iterfreq'] = 0 | ||
runner.config['iter_max'] = 0 | ||
|
||
runner.start() | ||
|
||
output = Path(runner.directories['output']) | ||
|
||
assert 'Completed' in (output / 'status').read_text() |