File tree Expand file tree Collapse file tree 3 files changed +56
-38
lines changed Expand file tree Collapse file tree 3 files changed +56
-38
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will run the tests on a variety of operating systems and architectures.
2+
3+ name : Run tests on low availability Github osted runners
4+
5+ on :
6+ # Optionally run only, until the availability of the required Github hosted
7+ # runners does not slow down CI.
8+ workflow_call :
9+ workflow_dispatch :
10+
11+ jobs :
12+ run_tests :
13+ if : github.repository == 'GeospatialPython/pyshp'
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ python-version : [
18+ " 3.12" ,
19+ ]
20+ os : [
21+ # "macos-12",
22+ " ubuntu-24.04" ,
23+ # "windows-2022",
24+ ]
25+
26+ runs-on : matrix.os
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - uses : actions/setup-python@v5
31+ with :
32+ python-version : ${{ inputs.python_version }}
33+
34+ - name : Run tests
35+ uses : ./.github/actions/test
Original file line number Diff line number Diff line change 1313 types : [published]
1414
1515jobs :
16- deploy :
16+ test :
1717
18+ # In general, tests should be run after building a distribution, to test that distribution.
19+ # However as long as PyShp is a pure Python library, with pure Python deps (or no deps)
20+ # then this would only test the packaging process, not so much the code as there are
21+ # no binaries.
1822 runs-on : ubuntu-latest
1923
2024 steps :
2125 - uses : actions/checkout@v4
2226 - name : Set up Python
23- uses : actions/setup-python@v2
27+ uses : actions/setup-python@v5
2428 with :
2529 python-version : ' 3.x'
2630
27- # In general tests should be run after building a distribution, to test that distribution.
28- # However as long as PyShp is a pure Python library, with pure Python deps (or no deps)
29- # then it's not crucial.
30-
31- # Prevent deployment of releases that fail any hooks (e.g. linting) or that fail any tests.
3231 - name : Run tests and hooks
3332 uses : ./.github/workflows/run_tests_and_hooks.yml
3433
34+ deploy :
35+ # Prevent deployment of releases that fail any hooks (e.g. linting) or that fail any tests.
36+ needs : test
37+ runs-on : ubuntu-latest
38+
39+ steps :
40+ - uses : actions/checkout@v4
41+ - name : Set up Python
42+ uses : actions/setup-python@v5
43+ with :
44+ python-version : ' 3.x'
45+
46+
47+
3548 - name : Install dependencies
3649 run : |
3750 python -m pip install --upgrade pip
Original file line number Diff line number Diff line change 1717 - uses : actions/setup-python@v5
1818 -
uses :
pre-commit/[email protected] 1919
20- test_in_slim_Python_containers :
20+ run_tests_in_containers :
2121 strategy :
2222 fail-fast : false
2323 matrix :
4444 - name : Run tests
4545 uses : ./.github/actions/test
4646
47-
48- test_on_MacOS_and_Windows :
49- if : github.repository == 'GeospatialPython/pyshp'
50- strategy :
51- fail-fast : false
52- matrix :
53- python-version : [
54- " 3.12" ,
55- ]
56- os : [
57- # "macos-12",
58- " ubuntu-24.04" ,
59- " windows-2022" ,
60- ]
61- # include:
62- # - os: "windows-latest"
63- # python-version: "3.13"
64- # - os: "macos-latest"
65- # python-version: "3.13"
66-
67- runs-on : matrix.os
68- steps :
69- - uses : actions/checkout@v4
70-
71- - uses : actions/setup-python@v5
72- with :
73- python-version : ${{ inputs.python_version }}
74-
75- - name : Run tests
76- uses : ./.github/actions/test
You can’t perform that action at this time.
0 commit comments