Minor update to depth- and time-dependent unit testing #464
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |