@@ -10,13 +10,19 @@ jobs:
1010 strategy :
1111 fail-fast : false
1212 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"]
1617 include :
17- - python-version : " 3.8 "
18- numpy_ver : " 1.20 "
18+ - python-version : " 3.9 "
19+ numpy_ver : " 1.21 "
1920 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"
2026
2127 name : Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
2228 runs-on : ${{ matrix.os }}
@@ -31,18 +37,25 @@ jobs:
3137 if : ${{ matrix.os == 'macos-latest' }}
3238 run : brew reinstall gcc
3339
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+
3449 - name : Install NEP29 dependencies
35- if : ${{ matrix.numpy_ver != 'latest '}}
50+ if : ${{ matrix.test_config == 'NEP29 '}}
3651 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]
4054
4155 - name : Install standard dependencies
56+ if : ${{ matrix.test_config == 'latest'}}
4257 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]
4659
4760 - name : Set up pysat
4861 run : |
5669 run : flake8 . --count --exit-zero --max-complexity=10 --statistics
5770
5871 - name : Test with pytest
59- run : |
60- pytest -vs --cov=pysatNASA/
72+ run : pytest
6173
6274 - name : Publish results to coveralls
6375 env :
6476 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65- run : coveralls --rcfile=setup.cfg --service=github
77+ run : coveralls --rcfile=pyproject.toml --service=github
0 commit comments