Skip to content

Commit 8f5fef1

Browse files
committed
build: also test PyPy nightlies
1 parent fe67643 commit 8f5fef1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/python-nightly.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
name: "Python Nightly Tests"
55

66
on:
7+
push:
8+
branches:
9+
- "**/*nightly*"
710
schedule:
811
# Run at 2:22am early Saturday morning Eastern time (6/7:22 UTC)
912
# so that we get tips of CPython development tested.
@@ -21,7 +24,7 @@ env:
2124

2225
jobs:
2326
tests:
24-
name: "Python nightly ${{ matrix.python-version }}"
27+
name: "Python ${{ matrix.python-version }}"
2528
runs-on: ubuntu-latest
2629

2730
strategy:
@@ -34,14 +37,25 @@ jobs:
3437
- "3.9-dev"
3538
- "3.10-dev"
3639
- "3.11-dev"
40+
# https://github.com/actions/setup-python#available-versions-of-pypy
41+
- "pypy-3.7-nightly"
42+
- "pypy-3.8-nightly"
43+
- "pypy-3.9-nightly"
3744
fail-fast: false
3845

3946
steps:
4047
- name: "Check out the repo"
4148
uses: "actions/checkout@v2"
4249

43-
- name: "Install Python ${{ matrix.python-version }}"
50+
- name: "Install ${{ matrix.python-version }} with deadsnakes"
4451
uses: "deadsnakes/[email protected]"
52+
if: "!startsWith(matrix.python-version, 'pypy-')"
53+
with:
54+
python-version: "${{ matrix.python-version }}"
55+
56+
- name: "Install ${{ matrix.python-version }} with setup-python"
57+
uses: "actions/setup-python@v2"
58+
if: "startsWith(matrix.python-version, 'pypy-')"
4559
with:
4660
python-version: "${{ matrix.python-version }}"
4761

@@ -52,6 +66,6 @@ jobs:
5266
python -m site
5367
python -m pip install -r requirements/tox.pip
5468
55-
- name: "Run tox for ${{ matrix.python-version }}"
69+
- name: "Run tox"
5670
run: |
5771
python -m tox -- -rfsEX

0 commit comments

Comments
 (0)