Commit 19a9238
committed
Test Network tests on localhost
Run on this branch
Run Network tests in container jobs
Remove type field from Action input
Add description and required fields to Action input.
Add option to Clone repo of copies of files to serve locally in mock remote url tests
Specify shell in action job step
Use actions/checkout instead of git (unavailable in Python slim docker images)
Checkout artefacts repo to ..
Add pyshp_repo_directory input
Serve artefacts on localhost:8000
Specify shell: bash in Github action
Don't curl from localhost - not available in Python slim images (neither is wget)
TRy requesting on localhost in Python non-slim images
Correct path to custom test file
Test local server
Sleep for twice as long after starting simple Python server
Don't output PyTest version
Swap out remote URLs with stripped path localhost version
Rename input variable
Import re where needed and reformat
Reformat
Change env var to be yes / no, not True / False
Reformat
Pass list to urlunparse on Python 2
Specify port 8000
Use double quotes
Separate network tests and non-network tests into different steps
Trim whitespace
Try Network tests on all platforms
Print simplified localhost urls during Pytest network tests
Reorder pre-commit hooks and add blank line
Try curling from simplified url on Python2
Test curl from server only
Remove errant '
Run doctests against Python 2 SimpleHTTPServer
Special case "import shapefile" in doctests filter
Update shapefile.py
Always include first example doctest
Run Pytest tests in Python 2 non-slim container
Update action.yml
Update test_shapefile.py
Update test_shapefile.py
Explicitly export env var
Don't need to explicitly set env var. Test without patching localhost.
Reformat
Update shapefile.py
Update shapefile.py
Use Caddy instead of SimpleHTTPServer
Run caddy in backgorund
Run all tests in all containers, all platforms, all Python versions
Revert to python -m http.server to avoid overloading Caddy releases page1 parent 89a4125 commit 19a9238
File tree
5 files changed
+234
-36
lines changed- .github
- actions/test
- workflows
5 files changed
+234
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
13 | 27 | | |
14 | 28 | | |
15 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
16 | 42 | | |
17 | 43 | | |
18 | 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 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
19 | 78 | | |
20 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
21 | 83 | | |
22 | 84 | | |
23 | 85 | | |
24 | 86 | | |
| 87 | + | |
25 | 88 | | |
26 | 89 | | |
27 | 90 | | |
28 | 91 | | |
29 | 92 | | |
30 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
31 | 97 | | |
32 | | - | |
| 98 | + | |
33 | 99 | | |
34 | 100 | | |
35 | 101 | | |
36 | 102 | | |
37 | 103 | | |
38 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | | - | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | | - | |
| 68 | + | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
| |||
74 | 86 | | |
75 | 87 | | |
76 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | | - | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
| 100 | + | |
81 | 101 | | |
82 | 102 | | |
83 | | - | |
84 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
14 | 13 | | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
2794 | 2799 | | |
2795 | 2800 | | |
2796 | 2801 | | |
2797 | | - | |
| 2802 | + | |
2798 | 2803 | | |
2799 | | - | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
2800 | 2817 | | |
2801 | 2818 | | |
| 2819 | + | |
| 2820 | + | |
2802 | 2821 | | |
| 2822 | + | |
2803 | 2823 | | |
2804 | 2824 | | |
2805 | 2825 | | |
2806 | 2826 | | |
2807 | 2827 | | |
2808 | 2828 | | |
2809 | 2829 | | |
| 2830 | + | |
2810 | 2831 | | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2811 | 2837 | | |
2812 | 2838 | | |
2813 | 2839 | | |
2814 | 2840 | | |
2815 | 2841 | | |
2816 | | - | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
2817 | 2877 | | |
2818 | 2878 | | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | 2879 | | |
2826 | 2880 | | |
| 2881 | + | |
2827 | 2882 | | |
2828 | 2883 | | |
2829 | 2884 | | |
2830 | | - | |
2831 | | - | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
2832 | 2909 | | |
2833 | 2910 | | |
2834 | 2911 | | |
| |||
0 commit comments