Debian Codegraph @

.github/workflows/main.yml

raw
1 name: build ⚙️
2
3 on: [ push, pull_request ]
4
5 jobs:
6 main:
7 runs-on: ubuntu-24.04
8 strategy:
9 matrix:
10 python-version: ["3.12"]
11 steps:
12 - uses: actions/checkout@master
13 - uses: actions/setup-python@v6
14 name: Setup Python ${{ matrix.python-version }}
15 with:
16 python-version: ${{ matrix.python-version }}
17 - name: Install packages
18 run: sudo apt-get -y install pandoc
19 - name: Install requirements 📦
20 run: |
21 pip3 install -e .
22 pip3 install ".[dev]"
23 pip3 install ".[docs]"
24 pip3 install ".[test]"
25 - name: run tests ⚙️
26 run: pytest tests/
27 - name: run tests in offline mode
28 if: matrix.python-version == '3.12'
29 run: |
30 pytest tests/\
31 -m "not online" \
32 --disable-socket \
33 --deselect="tests/doctests/wcs_thredds.txt::wcs_thredds.txt" \
34 --deselect="tests/doctests/wfs_MapServerWFSCapabilities.txt::wfs_MapServerWFSCapabilities.txt" \
35 --deselect="tests/doctests/wms_geoserver_mass_gis.txt::wms_geoserver_mass_gis.txt"
36 - name: run coveralls ⚙️
37 run: coveralls
38 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 COVERALLS_PARALLEL: true
41 COVERALLS_FLAG_NAME: "${{ matrix.python-version }}"
42 COVERALLS_SERVICE_NAME: github
43 COVERALLS_SERVICE_JOB_ID: "${{ github.run_id }}"
44 COVERALLS_SERVICE_NUMBER: "${{ github.workflow }}-${{ github.run_number }}"
45 - name: build docs 🏗️
46 run: cd docs && make html
47 - name: run flake8 ⚙️
48 run: flake8 owslib/