@@ -12,13 +12,19 @@ jobs:
1212 strategy :
1313 fail-fast : false
1414 matrix :
15- os : [ubuntu-latest, macos-latest, windows-latest]
16- python-version : ["3.9", "3.10"]
17- numpy_ver : [latest]
15+ os : ["ubuntu-latest", "macos-latest", "windows-latest"]
16+ python-version : ["3.10", "3.11"]
17+ numpy_ver : ["latest"]
18+ test_config : ["latest"]
1819 include :
19- - python-version : " 3.8"
20- numpy_ver : " 1.20.3"
21- os : " ubuntu-latest"
20+ - python-version : " 3.9"
21+ numpy_ver : " 1.22"
22+ os : ubuntu-latest
23+ test_config : " NEP29"
24+ - python-version : " 3.6.8"
25+ numpy_ver : " 1.19.5"
26+ os : " ubuntu-20.04"
27+ test_config : " Ops"
2228
2329 name : Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
2430 runs-on : ${{ matrix.os }}
@@ -29,15 +35,24 @@ jobs:
2935 with :
3036 python-version : ${{ matrix.python-version }}
3137
32- - name : Install standard dependencies
38+ - name : Install Operational dependencies
39+ if : ${{ matrix.test_config == 'Ops'}}
3340 run : |
34- pip install -r test_requirements.txt
41+ pip install --no-cache-dir numpy==${{ matrix.numpy_ver }}
42+ pip install "cdflib<1.0"
3543 pip install -r requirements.txt
44+ pip install -r test_requirements.txt
45+ pip install .
3646
3747 - name : Install NEP29 dependencies
38- if : ${{ matrix.numpy_ver != 'latest '}}
48+ if : ${{ matrix.test_config == 'NEP29 '}}
3949 run : |
4050 pip install numpy==${{ matrix.numpy_ver }}
51+ pip install --upgrade-strategy only-if-needed .[test]
52+
53+ - name : Install standard dependencies
54+ if : ${{ matrix.test_config == 'latest'}}
55+ run : pip install .[test]
4156
4257 - name : Set up pysat
4358 run : |
5166 run : flake8 . --count --exit-zero --max-complexity=10 --statistics
5267
5368 - name : Run unit and integration tests
54- run : pytest --cov=pysatModels/
69+ run : pytest
5570
5671 - name : Publish results to coveralls
5772 env :
5873 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59- run : coveralls --rcfile=setup.cfg --service=github
74+ COVERALLS_PARALLEL : true
75+ run : coveralls --rcfile=pyproject.toml --service=github
76+
77+ finish :
78+ name : Finish Coverage Analysis
79+ needs : build
80+ runs-on : ubuntu-latest
81+ steps :
82+ - name : Coveralls Finished
83+ env :
84+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85+ run : |
86+ pip install --upgrade coveralls
87+ coveralls --service=github --finish
0 commit comments