-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (44 loc) · 1.38 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test pyglider
on: [push, pull_request]
defaults:
run:
shell: bash -el {0}
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", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: mamba setup enviroment
uses: mamba-org/[email protected]
with:
environment-name: test-env
environment-file: environment.yml
create-args: >-
python=${{ matrix.python-version }}
- name: install pyglider source
run: |
pip install -e .
- name: Process seaexplorer
run: |
cd tests/example-data/example-seaexplorer
make clean-all
python process_deploymentRealTime.py
- name: Process slocum
run: |
cd tests/example-data/example-slocum
make clean-all
python process_deploymentRealTime.py
- name: Process seaexplorer-legato-flntu-arod-ad2cp
run: |
cd tests/example-data/example-seaexplorer-legato-flntu-arod-ad2cp
make clean-all
python process_deploymentRealTime.py
- name: Run tests
run: pytest --cov --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4