Skip to content

update ruff check

update ruff check #4

Workflow file for this run

name: tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Parse Python version
run: sed s/python-// runtime.txt | head > .python-version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: ".python-version"
cache: "pip"
- name: Install dependencies
run: |
sudo apt install -y libgeos-dev
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: ruff
run: |
ruff check .
ruff format . --check
- name: Test with pytest
run: |
pip install pytest
python -m pytest