Skip to content

Commit 9b16cad

Browse files
committed
run tests with nox, run bmi-test outside of virtualenv
1 parent f73b95b commit 9b16cad

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
matrix:
2222
os: [ubuntu-latest, macos-latest, windows-latest]
2323
python-version: ["3.10", "3.11", "3.12"]
24+
fail-fast: false
2425

2526
steps:
2627
- uses: actions/checkout@v4
@@ -33,18 +34,36 @@ jobs:
3334

3435
- name: Show conda installation info
3536
run: |
36-
conda install --file=requirements-testing.txt
3737
conda info
3838
conda list
3939
40-
- name: Build and install package
41-
run: pip install .
42-
4340
- name: Test
4441
run: |
45-
pytest --cov=heat --cov-report=xml:./coverage.xml -vvv
42+
pip install nox
43+
nox -s test --force-pythons="${{ matrix.python-version }}"
44+
45+
- name: Run bmi-test
46+
run: |
47+
pip install model-metadata
48+
conda install gimli.units pymt_hydrotrend -c conda-forge
49+
pip install .
4650
bmi-test heat:BmiHeat --config-file=./examples/heat.yaml --root-dir=./examples -vvv
4751
4852
- name: Coveralls
49-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
53+
if: matrix.os == 'ubuntu-latest'
5054
uses: AndreMiras/coveralls-python-action@develop
55+
with:
56+
parallel: true
57+
flag-name: py${{ matrix.python-version }}-${{ matrix.os }}
58+
59+
debug: true
60+
61+
coveralls_finish:
62+
needs: build-and-test
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Coveralls Finished
66+
uses: AndreMiras/coveralls-python-action@develop
67+
with:
68+
parallel-finished: true
69+
debug: true

0 commit comments

Comments
 (0)