-
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 test workflow * fix lint workflow triggered twice * fix env file not found * pytest output in colors * custom matrix builds * add xarray-dev and attrs-dev to test matrix * add coveralls * fix if line * try fix coverage data sent to coveralls * use python-coveralls instead of the github action see coverallsapp/github-action#4 (comment) * run coveralls only for py37 environment * build only docs on travis * install pytest-cov and converalls using conda * try fix coveralls command not found * add doc workflow * switch to codecov * add codecov config * codecov comment still shown? * use codecov action * update badges * update release notes * remove travis yaml * gitignore mypy cache
- Loading branch information
Showing
13 changed files
with
133 additions
and
80 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,10 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 2% | ||
patch: false | ||
changes: false | ||
|
||
comment: false |
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,40 @@ | ||
name: doc | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
doc: | ||
name: sphinx | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install miniconda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: xarray-simlab-doc | ||
environment-file: ci/requirements/doc.yml | ||
auto-activate-base: false | ||
- name: Install RDT sphinx theme | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge sphinx_rtd_theme | ||
- name: Conda info | ||
shell: bash -l {0} | ||
run: conda info | ||
- name: Conda list | ||
shell: bash -l {0} | ||
run: conda list | ||
- name: Install xarray-simlab | ||
shell: bash -l {0} | ||
run: | | ||
pip install --no-deps -e . | ||
python -OO -c "import xsimlab" | ||
- name: Build doc | ||
shell: bash -l {0} | ||
run: | | ||
cd doc | ||
sphinx-build -n -j auto -b html -d _build/doctrees . _build/html |
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,53 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
test: | ||
name: pytest (${{ matrix.cfg.env-name }}, ${{ matrix.cfg.os }}) | ||
runs-on: ${{ matrix.cfg.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfg: | ||
- {os: ubuntu-latest, env-name: py36} | ||
- {os: ubuntu-latest, env-name: py37, codecov: true} | ||
- {os: ubuntu-latest, env-name: py38} | ||
- {os: macos-latest, env-name: py37} | ||
- {os: windows-latest, env-name: py37} | ||
- {os: ubuntu-latest, env-name: py37-xarray-dev, allow-failure: true} | ||
- {os: ubuntu-latest, env-name: py37-attrs-dev, allow-failure: true} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install miniconda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: test_env_${{ matrix.cfg.env-name }} | ||
environment-file: ci/requirements/${{ matrix.cfg.env-name }}.yml | ||
auto-activate-base: false | ||
- name: Conda info | ||
shell: bash -l {0} | ||
run: conda info | ||
- name: Conda list | ||
shell: bash -l {0} | ||
run: conda list | ||
- name: Install xarray-simlab | ||
shell: bash -l {0} | ||
run: | | ||
pip install --no-deps -e . | ||
python -OO -c "import xsimlab" | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: pytest xsimlab --cov=xsimlab --cov-report term-missing --cov-report xml --verbose --color=yes | ||
continue-on-error: ${{ matrix.cfg.allow-failure }} | ||
- name: Codecov | ||
if: matrix.cfg.codecov | ||
uses: codecov/codecov-action@v1 |
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 |
---|---|---|
|
@@ -34,6 +34,9 @@ pip-log.txt | |
nosetests.xml | ||
.cache | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# Translations | ||
*.mo | ||
|
||
|
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
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
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