Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Build docs"

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]

- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"

- name: Install dependencies
run: pip install sphinx

- name: Build docs
run: cd docs && make html
52 changes: 52 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Tests"

on:
workflow_dispatch:
push:
branches:
- main
pull_request: ~

jobs:
test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix: # https://docs.djangoproject.com/en/4.2/faq/install
django-version: ["3.2", "4.0", "4.1", "4.2"]
python-version: ["3.8", "3.9", "3.10"]
elastic-version: ["1.7", "2.4", "5.5", "7.13.1"]
include:
- django-version: "4.1"
python-version: "3.11"
elastic-version: "7.13.1"
services:
elastic:
image: elasticsearch:${{ matrix.elastic-version }}
env:
discovery.type: "single-node"
options: >-
--health-cmd "curl http://localhost:9200/_cluster/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
ports:
- 9200:9200
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: sudo apt install --no-install-recommends -y gdal-bin
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install tox tox-gh-actions
pip install django==${{ matrix.django-version }} elasticsearch==${{ matrix.elastic-version }}
# python setup.py clean build install
- name: Run test
run: tox -v
env:
DJANGO: ${{ matrix.django-version }}
Loading