Nd-signal #446
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: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mamba-org/provision-with-micromamba@main | |
with: | |
environment-file: environment.yml | |
environment-name: clouddrift | |
- name: Testing | |
shell: bash -l {0} | |
run: | | |
pip install coverage | |
coverage run -m unittest discover -s tests -p "*.py" | |
coverage xml | |
- name: Upload coverage reports to Codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |