Skip to content

use micromamba ci

use micromamba ci #87

Workflow file for this run

name: Test pyglider
on: [push, pull_request]
jobs:
test-gliders:
name: pyglider (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: mamba setup enviroment
- uses: mamba-org/[email protected]
with:
environment-name: test-env
environment-file: tests/environment.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Conda info
shell: micromamba-shell {0}
run: conda info; conda list
- name: install pyglider source
shell: micromamba-shell {0}
run: which pip; pip install -e .
- name: Process seaexplorer
shell: micromamba-shell {0}
run: which python; cd tests/example-data/example-seaexplorer; make clean-all; python process_deploymentRealTime.py
- name: Process slocum
shell: micromamba-shell {0}
run: which python; cd tests/example-data/example-slocum; make clean-all; python process_deploymentRealTime.py
- name: Process seaexplorer-legato-flntu-arod-ad2cp
shell: micromamba-shell {0}
run: which python; cd tests/example-data/example-seaexplorer-legato-flntu-arod-ad2cp; make clean-all; python process_deploymentRealTime.py
- name: Run tests
shell: micromamba-shell {0}
run: which python; pytest --cov --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3