| 1 |
name: lint-test-build |
| 2 |
|
| 3 |
on: [push] |
| 4 |
|
| 5 |
jobs: |
| 6 |
test: |
| 7 |
runs-on: ubuntu-latest |
| 8 |
strategy: |
| 9 |
matrix: |
| 10 |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9", "pypy3.10"] |
| 11 |
|
| 12 |
steps: |
| 13 |
- uses: actions/checkout@v4 |
| 14 |
- name: Set up Python ${{ matrix.python-version }} |
| 15 |
uses: actions/setup-python@v5 |
| 16 |
with: |
| 17 |
python-version: ${{ matrix.python-version }} |
| 18 |
- name: Install dependencies |
| 19 |
run: | |
| 20 |
python -m pip install --upgrade pip |
| 21 |
python -m pip install -e .[dev] |
| 22 |
- name: Lint with pylint |
| 23 |
run: | |
| 24 |
python -m pylint polyline |
| 25 |
- name: Test with pytest |
| 26 |
run: | |
| 27 |
python -m pytest |
| 28 |
- name: Build docs |
| 29 |
run: | |
| 30 |
python -m sphinx.cmd.build -b html docs docs/_build/html |