-
Notifications
You must be signed in to change notification settings - Fork 117
75 lines (71 loc) · 1.9 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
67
68
69
70
71
72
73
74
75
name: Build PyWPS ⚙️
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Linting Suite
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install tox
run: |
pip install tox>=4.0
- name: Run linting suite ⚙️
run: |
tox -e lint
test:
name: Testing with Python${{ matrix.python-version }}
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tox-env: py38-extra
python-version: "3.8"
- tox-env: py39-extra
python-version: "3.9"
- tox-env: py310-extra
python-version: "3.10"
- tox-env: py311-extra
python-version: "3.11"
steps:
- uses: actions/checkout@v4
- name: Install packages 📦
run: |
sudo apt-get update
sudo apt-get -y install libnetcdf-dev libhdf5-dev
- uses: actions/setup-python@v5
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install tox 📦
run: pip install "tox>=4.0"
- name: Run tests with tox ⚙️
run: tox -e ${{ matrix.tox-env }}
- name: Run coveralls ⚙️
if: matrix.python-version == 3.8
uses: AndreMiras/coveralls-python-action@develop
docs:
name: Build docs 🏗️
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Setup Python 3.8
with:
python-version: 3.8
- name: Build documentation 🏗️
run: |
pip install -e .[dev]
cd docs && make html