-
-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (38 loc) · 1.04 KB
/
test.yml
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
38
39
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
do-test:
name: Test on Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
shapely-version: ["1.8", "2.0"]
exclude:
- python-version: "3.12"
shapely-version: "1.8"
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install flit codecov pytest flake8
- name: Install shapely version from matrix
run: python -m pip install "shapely~=${{ matrix.shapely-version }}"
- name: Install package dependencies
run: flit install --deps develop
- name: Lint with flake8
run: flake8 topojson
continue-on-error: true
- name: Test with pytest
run: pytest tests