Skip to content

Making the test_mixing unit test run for a much shorter period to ens… #459

Making the test_mixing unit test run for a much shorter period to ens…

Making the test_mixing unit test run for a much shorter period to ens… #459

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 }}