forked from komoot/staticmap
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 982 Bytes
/
.tests-python.yml
File metadata and controls
37 lines (31 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Unit tests
on:
push:
pull_request:
jobs:
tests:
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }}
name: python ${{ matrix.python-version }}
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Poetry and Dependencies
run: |
python -m pip install --upgrade pip
pip install --quiet poetry
poetry config virtualenvs.create false
poetry install --no-interaction --quiet --all-extras
- name: Lint
if: matrix.python-version == '3.14'
run: ruff check staticmap3
- name: Type check
if: matrix.python-version == '3.14'
run: mypy staticmap3
- name: Run unit tests
run: python -m unittest