-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #644 from Ouranosinc/use_guthub_ci
Use GitHub CI
- Loading branch information
Showing
11 changed files
with
214 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: xclim | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tox-env: [black] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run linting suite | ||
run: tox -e ${{ matrix.tox-env }} | ||
|
||
doctests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tox-env: [doctests] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run lint | ||
run: tox -e ${{ matrix.tox-env }} | ||
|
||
test: | ||
needs: black | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tox-env: [py37-xarray, py38-slow] | ||
python-version: [3.7, 3.8] | ||
exclude: | ||
- tox-env: py37-xarray | ||
python-version: 3.8 | ||
- tox-env: py38-slow | ||
python-version: 3.7 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Test with tox | ||
run: tox -e ${{ matrix.tox-env }} | ||
|
||
# docs: | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Install packages | ||
# run: | | ||
# sudo apt-get -y install pandoc | ||
# - uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: 3.6 | ||
# - name: Install tox | ||
# run: pip install tox | ||
# - name: make docs | ||
# run: tox -e docs | ||
|
||
# - name: Coveralls | ||
# uses: coverallsapp/github-action@master | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# flag-name: run-${{ matrix.python-version }} | ||
# parallel: true | ||
|
||
# finish: | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Coveralls Finished | ||
# uses: coverallsapp/github-action@master | ||
# with: | ||
# github-token: ${{ secrets.github_token }} | ||
# parallel-finished: true |
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
Oops, something went wrong.