Skip to content

Commit a7ef56e

Browse files
committed
Github : Apply test on Ubuntu & Windows for python 37,38,39
1 parent 3afb709 commit a7ef56e

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/python-app.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,27 @@ on: [push, pull_request]
77

88
jobs:
99
build:
10-
11-
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
# os: [ubuntu-latest, macos-latest, windows-latest]
13+
os: [ubuntu-latest, windows-latest]
14+
python_version: [3.7, 3.8, 3.9]
15+
name: Run py eddy tracker build tests
16+
runs-on: ${{ matrix.os }}
17+
defaults:
18+
run:
19+
shell: bash -l {0}
1220

1321
steps:
1422
- uses: actions/checkout@v2
15-
- name: Set up Python 3.7
23+
- name: Set up Python ${{ matrix.python_version }}
1624
uses: actions/setup-python@v2
1725
with:
18-
python-version: 3.7
26+
python-version: ${{ matrix.python_version }}
1927
- name: Install dependencies
2028
run: |
2129
python -m pip install --upgrade pip
22-
pip install flake8 pytest
30+
pip install flake8 pytest pytest-cov
2331
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2432
- name: Install package
2533
run: |
@@ -32,4 +40,4 @@ jobs:
3240
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3341
- name: Test with pytest
3442
run: |
35-
pytest
43+
pytest --cov src/py_eddy_tracker

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
Method was described in :
1212

13+
[Pegliasco, C., Delepoulle, A., Morrow, R., Faugère, Y., and Dibarboure, G.: META3.1exp : A new Global Mesoscale Eddy Trajectories Atlas derived from altimetry, Earth Syst. Sci. Data Discuss.](https://doi.org/10.5194/essd-2021-300)
14+
1315
[Mason, E., A. Pascual, and J. C. McWilliams, 2014: A new sea surface height–based code for oceanic mesoscale eddy tracking.](https://doi.org/10.1175/JTECH-D-14-00019.1)
1416

1517
### Use case ###

0 commit comments

Comments
 (0)