Update tests.yml #68
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: 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 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: pyglider | |
environment-file: tests/environment.yml | |
python-version: ${{ matrix.python-version }} | |
- name: Conda info | |
shell: bash -l {0} | |
run: conda info | |
- name: install pyglider | |
shell: bash -l {0} | |
run: which pip; pip install -e . | |
- name: Process seaexplorer | |
shell: bash -l {0} | |
run: which python; cd tests/example-data/example-seaexplorer; make clean-all; python process_deploymentRealTime.py | |
- name: Process slocum | |
shell: bash -l {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: bash -l {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: bash -l {0} | |
run: which python; pytest --cov --cov-report xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |