-
Notifications
You must be signed in to change notification settings - Fork 35
66 lines (63 loc) · 1.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on:
push:
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '!**.md'
- '!**.rst'
# release:
# types:
# - released
jobs:
main:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- python-version: '3.10'
steps:
# - name: Clear up GitHub runner diskspace
# run: |
# echo "Space before"
# df -h /
# sudo rm -rf /usr/local/lib/android
# sudo rm -rf /usr/share/dotnet
# echo "Space after"
# df -h /
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
# - name: Install and run PostgreSQL/PostGIS 📦
# uses: huaxk/postgis-action@v1
# with:
# postgresql password: ${{ secrets.DatabasePassword || 'postgres' }}
# postgresql db: 'test'
- name: Use ubuntuGIS unstable ppa
run: sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable && sudo apt update
shell: bash
- name: Install packages withcaching, like GDAL with Python bindings
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gdal-bin libgdal-dev python3-cov-core python3-nose2 python3-deprecated python3-flake8 python3-jinja2 python3-lxml python3-markupsafe python3-nose2 python3-psycopg2 python3-sphinx
version: 1
- name: Install Stetl 📦
run: |
pip install --upgrade pip
pip install nose2 sphinx_rtd_theme
python3 setup.py install
- name: run unit tests ⚙️
run: |
nose2 -v
pushd examples/basics && ./runall.sh && popd
- name: build docs 🏗️
run: pushd docs && make html && popd
- name: failed tests 🚩
if: ${{ failure() }}
run: |
pip list -v