Skip to content

Minor update to depth- and time-dependent unit testing #464

Minor update to depth- and time-dependent unit testing

Minor update to depth- and time-dependent unit testing #464

Workflow file for this run

name: unit-tests
on:
pull_request:
push:
schedule:
- cron: "0 7 * * 1" # Run every Monday at 7:00 UTC
defaults:
run:
shell: bash -el {0}
jobs:
unit-test:
name: Unittesting on ubuntu with python latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Conda and parcels
uses: ./.github/actions/install-plasticparcels
with:
environment-file: environment.yml
environment-name: py3_parcels
- name: Unit test
run: |
coverage run -m pytest -v -s tests
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
flags: unit-tests
token: ${{ secrets.CODECOV_TOKEN }}