-
Notifications
You must be signed in to change notification settings - Fork 117
57 lines (54 loc) · 1.43 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
name: build ⚙️
on:
push:
branches:
- main
pull_request:
jobs:
test:
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@v3
- name: Install packages 📦
run: |
sudo apt-get update
sudo apt-get -y install libnetcdf-dev libhdf5-dev
- uses: actions/setup-python@v4
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Run flake8 ⚙️
run: |
pip install flake8
flake8 pywps
if: matrix.python-version == 3.8
- 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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Setup Python 3.8
with:
python-version: 3.8
- name: Build docs 🏗️
run: |
pip install -e .[dev]
cd docs && make html