-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.38 KB
/
test.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
name: Python Test
on:
push:
branches:
- main
- dev
- dev-ci-doc
paths:
- '**.py'
- '!docs/**'
jobs:
test:
name: Unit Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Setup python ${{ matrix.python-version }}
with:
cache-dependency-path: '**/requirements_python3.10.txt'
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: install cartopy system packages
run: sudo apt-get install libgeos-dev=3.10.2-1
- name: pip install -r requirements_python3.10.txt
run: pip install -r ./requirements_python3.10.txt
- name: pip install -e .
run: pip install -e .
- name: Pytest
run: |
pytest malpolon/tests/test_geolifeclef2022_dataset.py
pytest malpolon/tests/test_environmental_raster.py
pytest malpolon/tests/test_data_utils.py
pytest malpolon/tests/test_models.py
pytest malpolon/tests/test_standard_prediction_systems.py
pytest malpolon/tests/test_torchgeo_datasets.py