88
99jobs :
1010
11-
12- build_wheel_and_sdist :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v4
16- - uses : actions/setup-python@v5
17- - name : Build wheel from the project repo
18- uses : ./.github/actions/build_wheel_and_sdist
19-
2011 run_speed_tests :
21- needs : build_wheel_and_sdist
2212 strategy :
2313 fail-fast : false
2414 matrix :
@@ -38,22 +28,18 @@ jobs:
3828 with :
3929 python-version : ${{ matrix.python-version }}
4030
41- - name : Download wheel and sdist (built in previous job)
42- uses : actions/download-artifact @v4
31+
32+ - uses : actions/checkout @v4
4333 with :
44- name : PyShp_wheel_and_sdist
45- path : dist
34+ path : ./Pyshp
4635
47- - name : Install PyShp + test deps from the wheel (downloaded in prev step)
36+ - name : Install PyShp + test deps
4837 shell : bash
49- working-directory : dist/
38+ working-directory : ./Pyshp
5039 run : |
51- WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
52- python -m pip install $WHEEL_NAME[test]
40+ python -m pip install -r requirements.test.txt
41+ python -m pip install -e .
5342
54- - uses : actions/checkout@v4
55- with :
56- path : ./Pyshp
5743
5844 - name : Checkout shapefiles and zip file artefacts repo
5945 uses : actions/checkout@v4
6248 path : ./PyShp_test_shapefile
6349
6450 - name : Run Speed tests.
51+ working-directory : ./Pyshp
6552 env :
6653 PYSHP_TEST_REPO : ./PyShp_test_shapefile
67- run : python ./Pyshp/ speed_test.py
54+ run : python speed_test.py
6855
6956
7057
0 commit comments