Skip to content

add CI min-dependencies job #3

add CI min-dependencies job

add CI min-dependencies job #3

Workflow file for this run

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