Skip to content

Add ShpWriter and ShxWriter. Reduce clutter from tests, by using temp dirs for writing shapefiles. #198

Add ShpWriter and ShxWriter. Reduce clutter from tests, by using temp dirs for writing shapefiles.

Add ShpWriter and ShxWriter. Reduce clutter from tests, by using temp dirs for writing shapefiles. #198

Workflow file for this run

name: Run the speed tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
build_wheel_and_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- name: Build wheel from the project repo
uses: ./.github/actions/build_wheel_and_sdist
run_speed_tests:
needs: build_wheel_and_sdist
strategy:
fail-fast: false
matrix:
python-version: [
"3.9",
"3.14",
]
os: [
"windows-latest",
"ubuntu-24.04",
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Download wheel and sdist (built in previous job)
uses: actions/download-artifact@v8
with:
name: PyShp_wheel_and_sdist
path: dist
- uses: actions/checkout@v6
with:
path: ./Pyshp
- name: Install PyShp + test deps from the wheel (downloaded in prev step)
shell: bash
working-directory: dist/
run: |
python -m pip install --upgrade pip
WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
python -m pip install $WHEEL_NAME --group ../Pyshp/pyproject.toml:test
- name: Checkout shapefiles and zip file artefacts repo
uses: actions/checkout@v6
with:
repository: JamesParrott/PyShp_test_shapefile
path: ./PyShp_test_shapefile
- name: Run Speed tests.
env:
PYSHP_TEST_REPO: ./PyShp_test_shapefile
run: python ./Pyshp/run_benchmarks.py