-
Notifications
You must be signed in to change notification settings - Fork 42
41 lines (37 loc) · 1.01 KB
/
testing.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
name: GemGIS CI
on:
push:
branches: [ main, dev_aj, dev_alex ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
testing:
name: Testing
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: gemgis_testing
environment-file: environment.yml
python-version: 3.9
channels: conda-forge
- name: List dependencies
run: |
conda list pygeos
conda list geopandas
conda list rasterio
conda list pyvista
conda list gemgis
- name: Install dependencies
run: |
pip install -r requirements_optional.txt
- name: Run tests with pytest
run: |
pytest