release v0.1.0 (#19) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install with dev dependencies | |
run: pip install .[dev] | |
- name: Check with pre-commit | |
run: pre-commit run --all-files | |
- name: Run tests | |
run: pytest | |
min-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Chekcout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
cache: "pip" | |
- name: Install geos | |
run: sudo apt-get install libgeos-dev | |
- name: Install with dev dependencies | |
run: pip install .[dev] | |
- name: Install minimum versions of dependencies | |
run: scripts/install-min-dependencies | |
- name: Check with pre-commit | |
run: pre-commit run --all-files | |
- name: Run tests | |
run: pytest | |
docs: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install with docs dependencies | |
run: pip install .[docs] | |
- name: Check docs | |
run: sphinx-build -W docs docs/_build/html |