-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (71 loc) · 1.96 KB
/
python-tests-mamba.yml
File metadata and controls
84 lines (71 loc) · 1.96 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 🐍 Conda Environments
on:
workflow_run:
workflows: [ "❄ Flake8" ]
types: [ completed ]
push:
branches:
- '**'
pull_request:
branches:
- main
- release-**
release:
types: [ published ]
jobs:
# Run EnMAP-Box tests
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
env:
QT_QPA_PLATFORM: offscreen
CI: true
strategy:
fail-fast: false
matrix:
mamba_env: [ qgis_latest, qgis_ltr, qgis_minimum ]
# python_version : [3.9, 3.10, 3.11]
# mamba_env: [enmapbox_light_latest, enmapbox_light_longterm, enmapbox_full_latest, enmapbox_full_longterm]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Environment Info
run: |
lsb_release -a
- name: Conda environment file
run: |
echo "conda environment file: ${{matrix.mamba_env}}.yml"
cat .conda/${{matrix.mamba_env}}.yml
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
# miniforge-variant: Mambaforge
# miniforge-version: latest
# mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: ${{matrix.mamba_env}}
environment-file: .conda/${{matrix.mamba_env}}.yml
clean-patched-environment-file: false
# use-mamba: false
# auto-activate-base: false
- name: Conda Environment Info
run: |
conda info
conda list
- name: Python and QGIS versions
run: |
python --version
qgis --version
- name: Setup Repository
run: |
python runfirst.py
mkdir -p ~/.local/share/QGIS/QGIS3/profiles
- name: Test in ${{matrix.mamba_env}}
run: |
chmod +x runtests.sh
bash ./runtests.sh -n auto