Skip to content

Commit baae770

Browse files
committed
Move ./shapefiles to tests/shapefiles. Separate doctest runner
Specify tests/shapefiles/**/* binary Move ./shapefiles to tests/shapefiles REfactor doctest runner into its own file, and move test files into ./tests Update paths to test files Use a computed path to each test shapefile, based on shapefile_dir, instead of hardcoded strings. Update doctest paths Use doctest runner in the Github Action
1 parent 478c638 commit baae770

31 files changed

Lines changed: 359 additions & 311 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
* text eol=lf
22
shapefiles/**/* binary
3+
tests/shapefiles/**/* binary

.github/actions/test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runs:
8585
working-directory: ${{ inputs.pyshp_repo_directory }}
8686
env:
8787
REPLACE_REMOTE_URLS_WITH_LOCALHOST: ${{ inputs.replace_remote_urls_with_localhost }}
88-
run: python test_shapefile.py ${{ inputs.extra_args }}
88+
run: python tests/run_doctests.py ${{ inputs.extra_args }}
8989

9090
- name: Show Python and Pytest versions for logs.
9191
shell: bash

.github/workflows/speed_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Run Speed tests.
6666
env:
6767
PYSHP_TEST_REPO: ./PyShp_test_shapefile
68-
run: python ./Pyshp/run_benchmarks.py
68+
run: python ./Pyshp/tests/run_benchmarks.py
6969

7070

7171

0 commit comments

Comments
 (0)