@@ -10,13 +10,19 @@ jobs:
10
10
strategy :
11
11
fail-fast : false
12
12
matrix :
13
- os : [ubuntu-latest, macos-latest, windows-latest]
14
- python-version : ["3.9", "3.10"]
15
- numpy_ver : [latest]
13
+ os : ["ubuntu-latest", "macos-latest", "windows-latest"]
14
+ python-version : ["3.10", "3.11"]
15
+ numpy_ver : ["latest"]
16
+ test_config : ["latest"]
16
17
include :
17
- - python-version : " 3.8 "
18
- numpy_ver : " 1.20 "
18
+ - python-version : " 3.9 "
19
+ numpy_ver : " 1.21 "
19
20
os : ubuntu-latest
21
+ test_config : " NEP29"
22
+ - python-version : " 3.6.8"
23
+ numpy_ver : " 1.19.5"
24
+ os : " ubuntu-20.04"
25
+ test_config : " Ops"
20
26
21
27
name : Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
22
28
runs-on : ${{ matrix.os }}
@@ -31,18 +37,25 @@ jobs:
31
37
if : ${{ matrix.os == 'macos-latest' }}
32
38
run : brew reinstall gcc
33
39
40
+ - name : Install Operational dependencies
41
+ if : ${{ matrix.test_config == 'Ops'}}
42
+ run : |
43
+ pip install --no-cache-dir numpy==${{ matrix.numpy_ver }}
44
+ pip install "cdflib<1.0"
45
+ pip install -r requirements.txt
46
+ pip install -r test_requirements.txt
47
+ pip install .
48
+
34
49
- name : Install NEP29 dependencies
35
- if : ${{ matrix.numpy_ver != 'latest '}}
50
+ if : ${{ matrix.test_config == 'NEP29 '}}
36
51
run : |
37
- pip install --no-binary :numpy: numpy==${{ matrix.numpy_ver }}
38
- # Need to force a version of pandas compliant with NEP29
39
- pip install "pandas<1.5"
52
+ pip install numpy==${{ matrix.numpy_ver }}
53
+ pip install --upgrade-strategy only-if-needed .[test]
40
54
41
55
- name : Install standard dependencies
56
+ if : ${{ matrix.test_config == 'latest'}}
42
57
run : |
43
- pip install -r requirements.txt
44
- pip install pysatCDF --no-binary=pysatCDF
45
- pip install -r test_requirements.txt
58
+ pip install .[test]
46
59
47
60
- name : Set up pysat
48
61
run : |
56
69
run : flake8 . --count --exit-zero --max-complexity=10 --statistics
57
70
58
71
- name : Test with pytest
59
- run : |
60
- pytest -vs --cov=pysatNASA/
72
+ run : pytest
61
73
62
74
- name : Publish results to coveralls
63
75
env :
64
76
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
- run : coveralls --rcfile=setup.cfg --service=github
77
+ run : coveralls --rcfile=pyproject.toml --service=github
0 commit comments