Skip to content

Commit 5f1d0f4

Browse files
committed
test: let nightly PyPy lag more than CPython
1 parent 5a2b83d commit 5f1d0f4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/python-nightly.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ jobs:
7171
exclude:
7272
- python-version: "3.12-dev"
7373
nogil: true
74-
- python-version: "pypy-3.9-nightly"
75-
nogil: true
7674
- python-version: "pypy-3.10-nightly"
7775
nogil: true
7876

@@ -109,7 +107,6 @@ jobs:
109107
env | sort
110108
111109
- name: "Check build recency"
112-
#if: "!startsWith(matrix.python-version, 'pypy-')"
113110
shell: python
114111
run: |
115112
import platform
@@ -119,10 +116,11 @@ jobs:
119116
built = datetime.strptime(platform.python_build()[1], fmt)
120117
except ValueError:
121118
continue
122-
now = datetime.now()
123-
days = (now - built).days
124-
print(f"Days since Python was built: {days}")
125-
assert days <= 7
119+
days = (datetime.now() - built).days
120+
impl = platform.python_implementation()
121+
recency = 7 if (impl == "CPython") else 21
122+
print(f"Days since {impl} was built: {days}, need within {recency}")
123+
assert days <= recency
126124
127125
- name: "Install dependencies"
128126
run: |

0 commit comments

Comments
 (0)