Skip to content

Commit 84e3161

Browse files
committed
Skip pg stuff on osx.
1 parent ff0d0c8 commit 84e3161

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/github-actions.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python: '3.8'
3030
toxpython: 'python3.8'
3131
python_arch: 'arm64'
32-
tox_env: 'py38-pg2'
32+
tox_env: 'py38'
3333
os: 'macos-latest'
3434
- name: 'py38-pg3 (ubuntu)'
3535
python: '3.8'
@@ -41,7 +41,7 @@ jobs:
4141
python: '3.8'
4242
toxpython: 'python3.8'
4343
python_arch: 'arm64'
44-
tox_env: 'py38-pg3'
44+
tox_env: 'py38'
4545
os: 'macos-latest'
4646
- name: 'py39-pg2 (ubuntu)'
4747
python: '3.9'
@@ -53,7 +53,7 @@ jobs:
5353
python: '3.9'
5454
toxpython: 'python3.9'
5555
python_arch: 'arm64'
56-
tox_env: 'py39-pg2'
56+
tox_env: 'py39'
5757
os: 'macos-latest'
5858
- name: 'py39-pg3 (ubuntu)'
5959
python: '3.9'
@@ -65,7 +65,7 @@ jobs:
6565
python: '3.9'
6666
toxpython: 'python3.9'
6767
python_arch: 'arm64'
68-
tox_env: 'py39-pg3'
68+
tox_env: 'py39'
6969
os: 'macos-latest'
7070
- name: 'py310-pg2 (ubuntu)'
7171
python: '3.10'
@@ -77,7 +77,7 @@ jobs:
7777
python: '3.10'
7878
toxpython: 'python3.10'
7979
python_arch: 'arm64'
80-
tox_env: 'py310-pg2'
80+
tox_env: 'py310'
8181
os: 'macos-latest'
8282
- name: 'py310-pg3 (ubuntu)'
8383
python: '3.10'
@@ -89,7 +89,7 @@ jobs:
8989
python: '3.10'
9090
toxpython: 'python3.10'
9191
python_arch: 'arm64'
92-
tox_env: 'py310-pg3'
92+
tox_env: 'py310'
9393
os: 'macos-latest'
9494
- name: 'py311-pg2 (ubuntu)'
9595
python: '3.11'
@@ -101,7 +101,7 @@ jobs:
101101
python: '3.11'
102102
toxpython: 'python3.11'
103103
python_arch: 'arm64'
104-
tox_env: 'py311-pg2'
104+
tox_env: 'py311'
105105
os: 'macos-latest'
106106
- name: 'py311-pg3 (ubuntu)'
107107
python: '3.11'
@@ -113,7 +113,7 @@ jobs:
113113
python: '3.11'
114114
toxpython: 'python3.11'
115115
python_arch: 'arm64'
116-
tox_env: 'py311-pg3'
116+
tox_env: 'py311'
117117
os: 'macos-latest'
118118
- name: 'py312-pg2 (ubuntu)'
119119
python: '3.12'
@@ -125,7 +125,7 @@ jobs:
125125
python: '3.12'
126126
toxpython: 'python3.12'
127127
python_arch: 'arm64'
128-
tox_env: 'py312-pg2'
128+
tox_env: 'py312'
129129
os: 'macos-latest'
130130
- name: 'py312-pg3 (ubuntu)'
131131
python: '3.12'
@@ -137,7 +137,7 @@ jobs:
137137
python: '3.12'
138138
toxpython: 'python3.12'
139139
python_arch: 'arm64'
140-
tox_env: 'py312-pg3'
140+
tox_env: 'py312'
141141
os: 'macos-latest'
142142
- name: 'pypy38-pg2 (ubuntu)'
143143
python: 'pypy-3.8'
@@ -149,7 +149,7 @@ jobs:
149149
python: 'pypy-3.8'
150150
toxpython: 'pypy3.8'
151151
python_arch: 'arm64'
152-
tox_env: 'pypy38-pg2'
152+
tox_env: 'pypy38'
153153
os: 'macos-latest'
154154
- name: 'pypy38-pg3 (ubuntu)'
155155
python: 'pypy-3.8'
@@ -161,7 +161,7 @@ jobs:
161161
python: 'pypy-3.8'
162162
toxpython: 'pypy3.8'
163163
python_arch: 'arm64'
164-
tox_env: 'pypy38-pg3'
164+
tox_env: 'pypy38'
165165
os: 'macos-latest'
166166
- name: 'pypy39-pg2 (ubuntu)'
167167
python: 'pypy-3.9'
@@ -173,7 +173,7 @@ jobs:
173173
python: 'pypy-3.9'
174174
toxpython: 'pypy3.9'
175175
python_arch: 'arm64'
176-
tox_env: 'pypy39-pg2'
176+
tox_env: 'pypy39'
177177
os: 'macos-latest'
178178
- name: 'pypy39-pg3 (ubuntu)'
179179
python: 'pypy-3.9'
@@ -185,7 +185,7 @@ jobs:
185185
python: 'pypy-3.9'
186186
toxpython: 'pypy3.9'
187187
python_arch: 'arm64'
188-
tox_env: 'pypy39-pg3'
188+
tox_env: 'pypy39'
189189
os: 'macos-latest'
190190
- name: 'pypy310-pg2 (ubuntu)'
191191
python: 'pypy-3.10'
@@ -197,7 +197,7 @@ jobs:
197197
python: 'pypy-3.10'
198198
toxpython: 'pypy3.10'
199199
python_arch: 'arm64'
200-
tox_env: 'pypy310-pg2'
200+
tox_env: 'pypy310'
201201
os: 'macos-latest'
202202
- name: 'pypy310-pg3 (ubuntu)'
203203
python: 'pypy-3.10'
@@ -209,7 +209,7 @@ jobs:
209209
python: 'pypy-3.10'
210210
toxpython: 'pypy3.10'
211211
python_arch: 'arm64'
212-
tox_env: 'pypy310-pg3'
212+
tox_env: 'pypy310'
213213
os: 'macos-latest'
214214
steps:
215215
- uses: actions/checkout@v4

ci/templates/.github/workflows/github-actions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python: '{{ python }}'
3939
toxpython: '{{ toxpython }}'
4040
python_arch: '{{ python_arch }}'
41-
tox_env: '{{ env }}'
41+
tox_env: '{{ env if os == 'ubuntu' else prefix }}'
4242
os: '{{ os }}-latest'
4343
{% endfor %}
4444
{% endfor %}

tests/test_holdup.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ruff: noqa: PTH110, PTH120, PTH123
22
import os
3+
import platform
34
import shutil
45
import socket
56
import threading
@@ -273,6 +274,7 @@ def test_eval_comma_anycheck(testdir, extra):
273274
assert result.ret == 0
274275

275276

277+
@pytest.mark.skipif(platform.system() != "Linux", reason="too complicated to install psycopg on non-linux")
276278
@pytest.mark.parametrize("proto", ["postgresql", "postgres", "pg"])
277279
def test_pg_timeout(testdir, proto):
278280
result = testdir.run("holdup", "-t", "0.1", proto + "://0.0.0.0/foo")

0 commit comments

Comments
 (0)