Skip to content

Commit cd2edbc

Browse files
authored
Merge pull request RustPython#3329 from fanninpm/cleanup-list-of-tests
Cleanup lists of tests in ci.yaml
2 parents d703e26 + 51b16d3 commit cd2edbc

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ env:
1717
-p rustpython-jit
1818
-p rustpython-derive
1919
-p rustpython
20+
PLATFORM_INDEPENDENT_TESTS: >-
21+
test_argparse
22+
test_array
23+
test_asyncgen
24+
test_bytes
25+
test_calendar
26+
test_complex
27+
test_dis
28+
test_json
29+
test_list
30+
test_long
31+
test_set
32+
test_unicode
2033
2134
jobs:
2235
rust_tests:
@@ -145,22 +158,30 @@ jobs:
145158
- if: runner.os == 'Linux'
146159
name: run cpython platform-independent tests
147160
run:
148-
target/release/rustpython -m test -v
149-
test_argparse test_json test_bytes test_long test_unicode test_array
150-
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
161+
target/release/rustpython -m test -v ${{ env.PLATFORM_INDEPENDENT_TESTS }}
151162
- if: runner.os != 'Windows'
152163
name: run cpython platform-dependent tests
153-
run: target/release/rustpython -m test -v -x
154-
test_argparse test_json test_bytes test_long test_unicode test_array
155-
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
164+
run: target/release/rustpython -m test -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
156165
- if: runner.os == 'Windows'
157166
name: run cpython platform-dependent tests (windows partial - fixme)
158167
run:
159-
target/release/rustpython -m test -v -x
160-
test_argparse test_json test_bytes test_long test_unicode test_array
161-
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
162-
test_pwd test_bool test_cgi test_exception_hierarchy test_glob test_iter test_os test_pathlib
163-
test_py_compile test_set test_shutil test_sys test_unittest test_venv test_zipimport test_importlib test_io
168+
target/release/rustpython -m test -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
169+
test_bool
170+
test_cgi
171+
test_exception_hierarchy
172+
test_glob
173+
test_importlib
174+
test_io
175+
test_iter
176+
test_os
177+
test_pathlib
178+
test_pwd
179+
test_py_compile
180+
test_shutil
181+
test_sys
182+
test_unittest
183+
test_venv
184+
test_zipimport
164185
- if: runner.os == 'Linux'
165186
name: check that --install-pip succeeds
166187
run: |

0 commit comments

Comments
 (0)