-
-
Notifications
You must be signed in to change notification settings - Fork 155
50 lines (48 loc) · 1.32 KB
/
main.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
name: build ⚙️
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
release:
types:
- released
jobs:
main:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- python-version: "3.10"
toxenv: "py310-sqlite"
- python-version: "3.11"
toxenv: "py311-sqlite"
env:
TOXENV: ${{ matrix.toxenv }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements 📦
run: |
sudo apt install -y libgeos-dev libpq-dev libxml2-dev libxslt1-dev libz-dev libexpat1
pip3 install -r requirements.txt
pip3 install -r requirements-standalone.txt
pip3 install -r requirements-dev.txt
pip3 install --upgrade https://github.com/geopython/OWSLib/archive/master.zip
pip3 install tox
echo "TOXENV => $TOXENV"
- name: run unit tests ⚙️
run: tox -- --exitfirst -m unit
- name: run integration tests ⚙️
run: tox -- --exitfirst -m functional -k 'not harvesting'
- name: build docs 🏗️
run: cd docs && make html