-
Notifications
You must be signed in to change notification settings - Fork 276
40 lines (38 loc) · 1.12 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
name: build ⚙️
on: [ push, pull_request ]
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
sudo apt-get -y install pandoc
if: matrix.python-version == 3.8
- name: Install requirements 📦
run: |
pip3 install -e .
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
pip3 install -r docs/requirements.txt
- name: run tests ⚙️
run: python3 -m pytest
- name: run coveralls ⚙️
run: coveralls
if: matrix.python-version == 3.8
- name: build docs 🏗️
run: cd docs && make html
if: matrix.python-version == 3.8
- name: run flake8 ⚙️
run: flake8 owslib
if: matrix.python-version == 3.8