Skip to content

Commit

Permalink
run ci tests with nox
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Jan 31, 2024
1 parent d73eaa6 commit b557169
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,32 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true

- name: Show conda installation info
run: |
mamba info
mamba list
- name: Build and install package
run: |
make install
miniforge-variant: Mambaforge
miniforge-version: latest

- name: Test
run: |
python -c 'import bmi_tester; print(bmi_tester.__version__)'
pytest --cov=bmi_tester --cov-report=xml:$(pwd)/coverage.xml -vvv
pip install nox
nox -s test --force-pythons="${{ matrix.python-version }}"
- name: Coveralls
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
if: matrix.os == 'ubuntu-latest'
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: py${{ matrix.python-version }}-${{ matrix.os }}

debug: true

coveralls_finish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
debug: true

0 comments on commit b557169

Please sign in to comment.