-
Notifications
You must be signed in to change notification settings - Fork 0
187 lines (168 loc) · 5.26 KB
/
rpython-unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: Rpython Unit Tests
# === Implementation notes ===
# Since the test suite is too large to run in a reasonable amount of time
# we split this into tests by sub-folder within the rpython folder
# Note: this action will only run if there are changes to one of:
# - rpython folder
# - .github folder
# - pytest.py
# add more items to `paths` if we missed some!
on:
push:
branches: [ "main", "py3.9", "py3.10" ]
paths:
- "rpython/**/*"
- "pytest.py"
- ".github/**/*"
pull_request:
branches: [ "main", "py3.9", "py3.10" ]
paths:
- "rpython/**/*"
- "pytest.py"
- ".github/**/*"
workflow_dispatch:
# Limit tests to latest commit on branches other than main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
test-misc:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "pypy2.7-7.3.17"
- run: |
echo "Install requirements"
sudo apt-get install -y libgc-dev
pypy2 -m pip install --user hypothesis==4.39.3
- name: Test Annotator
run: pypy2 pytest.py rpython/annotator
- name: Test Config
run: pypy2 pytest.py rpython/config
- name: Test Flowspace
run: pypy2 pytest.py rpython/flowspace
- name: Test Tool
run: pypy2 pytest.py rpython/tool
# FIXME: jit tests hang for 6 hours under pypy + linux
# Possibly enable cpython + linux tests as a half-way house?
# test-jit-x86:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-20.04]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: "pypy2.7-7.3.17"
# - run: |
# echo "Install requirements"
# sudo apt-get install -y libgc-dev
# pypy2 -m pip install --user hypothesis==4.39.3
# - name: Test Jit - X86
# run: pypy2 pytest.py -v rpython/jit/backend/x86
# test-jit-other:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-20.04]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: "pypy2.7-7.3.17"
# - run: |
# echo "Install requirements"
# sudo apt-get install -y libgc-dev
# pypy2 -m pip install --user hypothesis==4.39.3
# - name: Test Jit - Other
# run: pypy2 pytest.py -v rpython/jit --ignore=rpython/jit/backend/x86
test-memory:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "pypy2.7-7.3.17"
- run: |
echo "Install requirements"
sudo apt-get install -y libgc-dev
pypy2 -m pip install --user hypothesis==4.39.3
- name: Test Memory
run: pypy2 pytest.py rpython/memory
test-rlib:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "pypy2.7-7.3.17"
- run: |
echo "Install requirements"
sudo apt-get install -y libgc-dev
pypy2 -m pip install --user hypothesis==4.39.3 vmprof enum34>=1.1.2
- name: Test RLib
run: pypy2 pytest.py rpython/rlib -v
test-rtyper:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "pypy2.7-7.3.17"
- run: |
echo "Install requirements"
sudo apt-get install -y libgc-dev
pypy2 -m pip install --user hypothesis==4.39.3
- name: Test RTyper
# Note we split out test_rlist.py due to occasional segfaults
# with test_memoryerror that only occur when run with the full
# test suite
run: |
pypy2 pytest.py rpython/rtyper --ignore=rpython/rtyper/test/test_rlist.py
pypy2 pytest.py -v rpython/rtyper/test/test_rlist.py
test-translator:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "pypy2.7-7.3.17"
- run: |
echo "Install requirements"
sudo apt-get install -y libgc-dev
pypy2 -m pip install --user hypothesis==4.39.3
- name: Test Translator
run: |
# we don't need to run test_typed.py, because test_backendoptimized.py
# runs the same tests, just with more optimizations
pypy2 pytest.py rpython/translator --ignore=rpython/translator/c/test/test_typed.py --ignore=rpython/translator/c/test/test_newgc.py
# only run the tests for the incminimark GC, the one that we always use
# in practice
pypy2 pytest.py rpython/translator/c/test/test_newgc.py -k TestIncrementalMiniMarkGC