Skip to content

Commit

Permalink
Extract platform-independent tests into env var
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Oct 17, 2021
1 parent e1bd36d commit 69fc868
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ env:
-p rustpython-jit
-p rustpython-derive
-p rustpython
PLATFORM_INDEPENDENT_TESTS: >-
test_argparse test_json test_bytes test_long test_unicode test_array
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
jobs:
rust_tests:
Expand Down Expand Up @@ -145,20 +148,14 @@ jobs:
- if: runner.os == 'Linux'
name: run cpython platform-independent tests
run:
target/release/rustpython -m test -v
test_argparse test_json test_bytes test_long test_unicode test_array
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
target/release/rustpython -m test -v ${{ env.PLATFORM_INDEPENDENT_TESTS }}
- if: runner.os != 'Windows'
name: run cpython platform-dependent tests
run: target/release/rustpython -m test -v -x
test_argparse test_json test_bytes test_long test_unicode test_array
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
run: target/release/rustpython -m test -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
- if: runner.os == 'Windows'
name: run cpython platform-dependent tests (windows partial - fixme)
run:
target/release/rustpython -m test -v -x
test_argparse test_json test_bytes test_long test_unicode test_array
test_asyncgen test_list test_complex test_json test_set test_dis test_calendar
target/release/rustpython -m test -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
test_pwd test_bool test_cgi test_exception_hierarchy test_glob test_iter test_os test_pathlib
test_py_compile test_set test_shutil test_sys test_unittest test_venv test_zipimport test_importlib test_io
- if: runner.os == 'Linux'
Expand Down

0 comments on commit 69fc868

Please sign in to comment.