-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH Actions CI, more tests, more input checks, @Timer, use setup.cfg
This commit also has: * [cli] Better printout of numerical parameters * [utils] Add @Timer to time functions * [cli] Major revamping: core functions are module-level; Simulator obj fully implemented * [cli] Allow running main() as a function (i.e. not through CLI) * [model] Switch off some debug logging and reduce numba logs * [tests] Implement test for consistency among simulators * [tests] Add test and checks (in cli) for input parameter values
- Loading branch information
Showing
8 changed files
with
562 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Tests | ||
|
||
# Run this workflow every time a new commit pushed to your repository | ||
on: push | ||
|
||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: [ 3.6, 3.7, 3.8, 3.9 ] | ||
|
||
steps: | ||
# Checks out a copy of your repository on the ubuntu-latest machine | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install test dependencies | ||
run: | | ||
pip install setuptools --upgrade | ||
pip install .[test] | ||
- name: Run unit tests | ||
run: py.test oasishurricane/tests.py |
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
Oops, something went wrong.