-
Notifications
You must be signed in to change notification settings - Fork 20
49 lines (44 loc) · 1.08 KB
/
python-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
47
48
49
name: Python tests
on:
push:
branches: [ master, ]
paths:
- '**.py'
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- '**.py'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
test-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-20.04]
max-parallel: 5
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Set up Python 3.12.0
uses: actions/setup-python@v2
with:
python-version: 3.12.0
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.12.0
- name: Update environment
run: conda env update -f config/conda/environment.yml --name test --quiet
- name: Run tests
run: |
echo PROJ_LIB=$CONDA_BASE/share/proj >> $GITHUB_ENV
conda activate test
./run_python_tests.sh