Update README.md #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "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 |