-
Notifications
You must be signed in to change notification settings - Fork 268
54 lines (52 loc) · 1.54 KB
/
ci.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
50
51
52
53
54
name: CI
on: [ push, pull_request ]
jobs:
prep-tests:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-vars.outputs.matrix }}
date: ${{ steps.set-vars.outputs.date }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install tox
- name: Generate matrix & vars
id: set-vars
run: python helper/github-ci-vars.py
tests:
needs: prep-tests
runs-on: ubuntu-20.04
name: tests-${{ matrix.setup.toxenv }}
continue-on-error: ${{ matrix.setup.experimental }}
strategy:
matrix:
setup: ${{ fromJson(needs.prep-tests.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ needs.prep-tests.date }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.setup.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gdal-bin libsqlite3-mod-spatialite
- name: Install tox
run: pip install tox
- name: Run Tox
run: tox --skip-missing-interpreters=false -e ${{ matrix.setup.toxenv }}
- uses: codecov/codecov-action@v4
with:
name: ${{ matrix.setup.toxenv }}
token: ${{ secrets.CODECOV_TOKEN }}
passed-tests:
name: Required tests passed
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- run: echo "All Done"