Skip to content

CRS bug fix with temporary subset_geom clipping object, original get_target_crs function #155

CRS bug fix with temporary subset_geom clipping object, original get_target_crs function

CRS bug fix with temporary subset_geom clipping object, original get_target_crs function #155

Workflow file for this run

# This workflow installs all GeoCDL dependencies, runs some basic code quality
# checks, and runs all automated tests.
# For more information, see
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions.
name: GeoCDL code checks and tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
debug_enabled:
description: 'Type "true" below to run the build with tmate shell access enabled (https://github.com/marketplace/actions/debugging-with-tmate).'
required: false
default: false
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Enable tmate shell access for manually-triggered workflows if
# "debug_enabled" is "true".
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
# Enable dependency caching.
cache: 'pip'
- name: Install GDAL development libraries
run: |
sudo apt-get install -y libgdal-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r requirements.txt
pip install gdal==$(gdal-config --version)
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names.
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=84 --statistics
- name: Run all tests
run: |
cd src/tests
python run_tests.py