-
-
Notifications
You must be signed in to change notification settings - Fork 259
72 lines (54 loc) · 1.49 KB
/
speed_test.yml
File metadata and controls
72 lines (54 loc) · 1.49 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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.13",
]
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
- name: Install PyShp + test deps from the wheel (downloaded in prev step)
shell: bash
working-directory: dist/
run: |
WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
python -m pip install $WHEEL_NAME[test]
- uses: actions/checkout@v6
with:
path: ./Pyshp
- 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