Skip to content

Commit 1834213

Browse files
authored
CI: Add Network + Global Context test (#1194)
1 parent ff82248 commit 1834213

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/test_proj_latest.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,32 @@ jobs:
4646
- name: Test
4747
shell: bash
4848
run: |
49-
py.test --cov-report term-missing --cov=pyproj --cov-report xml
49+
python -m pytest --cov-report term-missing --cov=pyproj --cov-report xml
5050
5151
- name: Test Network
5252
shell: bash
5353
env:
5454
PROJ_NETWORK: ON
5555
run: |
56-
py.test
56+
python -m pytest
5757
5858
- name: Test Global Context
5959
shell: bash
6060
env:
6161
PYPROJ_GLOBAL_CONTEXT: ON
6262
run: |
63-
py.test
63+
python -m pytest
64+
65+
- name: Test Network & Global Context
66+
shell: bash
67+
env:
68+
PROJ_NETWORK: ON
69+
PYPROJ_GLOBAL_CONTEXT: ON
70+
run: |
71+
python -m pytest
6472
6573
- name: Test Grids
6674
shell: bash
6775
run: |
6876
$PROJ_DIR/bin/projsync --quiet --bbox -175,0,-50,85
69-
py.test
77+
python -m pytest

.github/workflows/tests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ jobs:
9696
. testenv/bin/activate
9797
python -m pytest
9898
99+
- name: Test Network & Global Context
100+
shell: bash
101+
env:
102+
PROJ_NETWORK: ON
103+
PYPROJ_GLOBAL_CONTEXT: ON
104+
run: |
105+
. testenv/bin/activate
106+
python -m pytest
107+
99108
- name: Test Grids
100109
shell: bash
101110
run: |
@@ -175,6 +184,8 @@ jobs:
175184
- name: Test
176185
shell: bash
177186
if: matrix.python-implementation == 'pypy'
187+
env:
188+
PROJ_NETWORK: OFF
178189
run: |
179190
source activate test
180191
python -m pytest
@@ -190,13 +201,25 @@ jobs:
190201
- name: Test Global Context
191202
shell: bash
192203
env:
204+
PROJ_NETWORK: OFF
205+
PYPROJ_GLOBAL_CONTEXT: ON
206+
run: |
207+
source activate test
208+
python -m pytest
209+
210+
- name: Test Network & Global Context
211+
shell: bash
212+
env:
213+
PROJ_NETWORK: ON
193214
PYPROJ_GLOBAL_CONTEXT: ON
194215
run: |
195216
source activate test
196217
python -m pytest
197218
198219
- name: Test Grids
199220
shell: bash
221+
env:
222+
PROJ_NETWORK: OFF
200223
run: |
201224
source activate test
202225
projsync --quiet --bbox -175,0,-50,85

0 commit comments

Comments
 (0)