✏️ Edit URLs to shapefiles from UNOSAT #435
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
types: [opened, ready_for_review, reopened, synchronize] | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: ${{ matrix.os }} - Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.10", "3.11"] | |
os: [ubuntu-22.04] | |
# Is it a draft Pull Request (true or false)? | |
isDraft: | |
- ${{ github.event.pull_request.draft }} | |
# Exclude Ubuntu + Python 3.8 and 3.11 jobs for draft PRs | |
exclude: | |
- python-version: '3.8' | |
isDraft: true | |
- python-version: '3.11' | |
isDraft: true | |
# Only install optional packages on Ubuntu-22.04/Python 3.10 and 3.11 | |
include: | |
- os: 'ubuntu-22.04' | |
python-version: '3.10' | |
extra-packages: '--extras "raster spatial stac vector"' | |
- os: 'ubuntu-22.04' | |
python-version: '3.11' | |
extra-packages: '--extras "raster spatial stac vector"' | |
steps: | |
# Checkout current git repository | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
# Install Python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install poetry package manager and dependencies from poetry.lock | |
- name: Install Poetry python dependencies | |
run: | | |
pip install poetry==1.6.1 | |
poetry install ${{ matrix.extra-packages }} | |
poetry self add poetry-dynamic-versioning[plugin] | |
poetry show | |
# Run the unit tests and doctests | |
- name: Test with pytest | |
run: poetry run pytest --verbose --doctest-modules zen3geo/ |