Fix flake8 E721 in baseparticlefile.py
#377
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: | |
push: | |
branches: | |
- "master" | |
- "test-me/*" | |
pull_request: | |
branches: | |
- "*" | |
schedule: | |
- cron: "0 7 * * 1" # Run every Monday at 7:00 UTC | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
unit-test: | |
name: Unittesting on ${{ matrix.os }} with python latest | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos, ubuntu, windows] | |
include: | |
- os: macos | |
os-short: osx | |
- os: ubuntu | |
os-short: linux | |
- os: windows | |
os-short: win | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Conda and parcels | |
uses: ./.github/actions/install-parcels | |
with: | |
environment-file: environment_py3_${{ matrix.os-short }}.yml | |
environment-name: py3_parcels | |
- name: Unit test | |
run: | | |
coverage run -m pytest -v -s --html=${{ matrix.os }}_unit_test_report.html --self-contained-html tests | |
coverage xml | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
flags: unit-tests | |
- name: Upload test results | |
if: ${{ always() }} # Always run this step, even if tests fail | |
uses: actions/[email protected] | |
with: | |
name: Unittest report | |
path: ${{ matrix.os }}_unit_test_report.html |