-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make test suite more random and add add_noise_to_params, move to Gith…
…ub Actions, etc.. (#320)
- Loading branch information
1 parent
d3298d9
commit 187bad3
Showing
33 changed files
with
521 additions
and
990 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "50...100" | ||
|
||
ignore: | ||
- ".tox/**/*" | ||
- "release.py" | ||
- "setup.py" | ||
- "respy/conftest.py" | ||
- "respy/tests/**/*" |
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,53 @@ | ||
name: Continuous Integration Workflow | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
run-tests: | ||
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
python-version: ['3.6', '3.7'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install core dependencies. | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge tox-conda | ||
|
||
- name: Install fixes for Python 3.7 on Windows | ||
if: runner.os == 'Windows' && matrix.python-version == '3.7' | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge numpy scipy conda-build | ||
|
||
- name: Run pytest. | ||
shell: bash -l {0} | ||
run: tox -e pytest -- -m "not slow" --cov-report=xml --cov=./ | ||
|
||
- name: Upload coverage report. | ||
if: runner.os == 'Linux' && matrix.python-version == '3.7' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Run sphinx. | ||
if: runner.os == 'Linux' && matrix.python-version == '3.7' | ||
shell: bash -l {0} | ||
run: tox -e sphinx | ||
|
||
- name: Run pre-commits. | ||
if: runner.os == 'Linux' && matrix.python-version == '3.7' | ||
shell: bash -l {0} | ||
run: tox -e linting |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.