Skip to content

Commit

Permalink
Update to modern Python standards
Browse files Browse the repository at this point in the history
Use pyproject.toml, pytest, GitHub Actions, updated docs, type hinting
  • Loading branch information
frederickjansen committed Dec 22, 2022
1 parent f379c0d commit 0c74cd2
Show file tree
Hide file tree
Showing 21 changed files with 1,101 additions and 838 deletions.
30 changes: 30 additions & 0 deletions .githhub/workflows/lint-test-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: lint-test-build

on: [push]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Lint with pylint
run: |
python -m pylint polyline
- name: Test with pytest
run: |
python -m pytest
- name: Build docs
run: |
python -m sphinx-build -b html docs docs/_build/html
Loading

0 comments on commit 0c74cd2

Please sign in to comment.