Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Jan 13, 2024
1 parent 41d735d commit 5d7a7e4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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"
- 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 .
ruff format . --check
- name: Test with pytest
run: |
pip install pytest
python -m pytest tests
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.10.13

0 comments on commit 5d7a7e4

Please sign in to comment.