-
Notifications
You must be signed in to change notification settings - Fork 41
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 #65 from euroargodev/xarray-016
Fix argopy broken by last xarray, fsspec and erddapy releases
- Loading branch information
Showing
25 changed files
with
407 additions
and
194 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,53 @@ | ||
on: | ||
pull_request: | ||
types: [ready_for_review] | ||
|
||
jobs: | ||
free_env: | ||
name: unit-test FREE env | ||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7, 3.8] | ||
os: [ubuntu-latest, macos-latest] | ||
experimental: [true] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set up environment with py-${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: argopy-tests | ||
environment-file: ci/requirements/py${{matrix.python-version}}-free.yml | ||
auto-update-conda: false | ||
python-version: ${{ matrix.python-version }} | ||
auto-activate-base: false | ||
|
||
- shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Lint with flake8 | ||
shell: bash -l {0} | ||
run: | | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
shell: bash -l {0} | ||
run: | | ||
pytest -s --verbosity=3 --cov=./ --cov-config=.coveragerc --cov-report xml:cov.xml --cov-report term-missing | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./cov.xml | ||
flags: unittests | ||
name: codecov-github | ||
fail_ci_if_error: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,53 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: build | ||
|
||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
unit-testing: | ||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
max-parallel: 12 | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
os: [ubuntu-latest, macos-latest] | ||
experimental: [false] | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@master | ||
- name: Set up environment with py-${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: argopy-tests | ||
environment-file: ci/requirements/py${{matrix.python-version}}-dev.yml | ||
auto-update-conda: false | ||
python-version: ${{ matrix.python-version }} | ||
auto-activate-base: false | ||
|
||
# - name: Set up Conda for py-${{ matrix.python-version }} | ||
# uses: goanpeca/setup-miniconda@v1 | ||
# with: | ||
# auto-update-conda: true | ||
# python-version: ${{ matrix.python-version }} | ||
# auto-activate-base: false | ||
|
||
- name: Install dependencies with pip | ||
- shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install distributed aiohttp ipywidgets | ||
# - name: Install dependencies with conda | ||
# shell: bash -l {0} | ||
# run: | | ||
# conda info | ||
# conda install matplotlib seaborn cartopy | ||
conda info | ||
conda list | ||
- name: Lint with flake8 | ||
shell: bash -l {0} | ||
run: | | ||
pip install flake8 | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
shell: bash -l {0} | ||
run: | | ||
pip install pytest pytest-cov | ||
pytest -s --verbosity=3 --cov=./ --cov-config=.coveragerc --cov-report xml:cov.xml --cov-report term-missing | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
file: ./cov.xml # optional | ||
flags: unittests # optional | ||
name: codecov-github # optional | ||
fail_ci_if_error: true # optional (default = false) | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./cov.xml | ||
flags: unittests | ||
name: codecov-github | ||
fail_ci_if_error: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,4 +188,5 @@ fabric.properties | |
#pytest quai20 | ||
.vscode/ | ||
.pytest_cache | ||
knotebooks/ | ||
knotebooks/ | ||
argopy/tests/cov.xml |
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
Oops, something went wrong.