@@ -224,81 +224,6 @@ jobs:
224
224
with :
225
225
command : check
226
226
227
- # snippets_cpython:
228
- # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
229
- # needs: lalrpop
230
- # env:
231
- # RUST_BACKTRACE: full
232
- # name: Run snippets and cpython tests
233
- # runs-on: ${{ matrix.os }}
234
- # strategy:
235
- # matrix:
236
- # os: [macos-latest, ubuntu-latest, windows-latest]
237
- # fail-fast: false
238
- # steps:
239
- # - uses: actions/checkout@v3
240
- # - name: Cache generated parser
241
- # uses: actions/cache@v3
242
- # with:
243
- # path: compiler/parser/python.rs
244
- # key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
245
- #
246
- # - uses: dtolnay/rust-toolchain@stable
247
- # - uses: actions/setup-python@v4
248
- # with:
249
- # python-version: "3.11"
250
- # - name: Set up the Windows environment
251
- # shell: bash
252
- # run: |
253
- # choco install llvm openssl
254
- # echo "OPENSSL_DIR=C:\Program Files\OpenSSL-Win64" >>$GITHUB_ENV
255
- # if: runner.os == 'Windows'
256
- # - name: Set up the Mac environment
257
- # run: brew install autoconf automake libtool openssl@3
258
- # if: runner.os == 'macOS'
259
- #
260
- # - uses: Swatinem/rust-cache@v2
261
- # - name: build rustpython
262
- # run: cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }}
263
- # - uses: actions/setup-python@v4
264
- # with:
265
- # python-version: "3.11"
266
- # - name: run snippets
267
- # run: python -m pip install -r requirements.txt && pytest -v
268
- # working-directory: ./extra_tests
269
- # - if: runner.os == 'Linux'
270
- # name: run cpython platform-independent tests
271
- # run:
272
- # target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v ${{ env.PLATFORM_INDEPENDENT_TESTS }}
273
- # - if: runner.os != 'Windows'
274
- # name: run cpython platform-dependent tests
275
- # run: target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
276
- # - if: runner.os == 'Windows'
277
- # name: run cpython platform-dependent tests (windows partial - fixme)
278
- # run:
279
- # target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
280
- # test_glob
281
- # test_importlib
282
- # test_io
283
- # test_iter
284
- # test_os
285
- # test_pathlib
286
- # test_posixpath
287
- # test_shutil
288
- # test_venv
289
- # - if: runner.os != 'Windows'
290
- # name: check that --install-pip succeeds
291
- # run: |
292
- # mkdir site-packages
293
- # target/release/rustpython --install-pip ensurepip --user
294
- # - if: runner.os != 'Windows'
295
- # name: Check that ensurepip succeeds.
296
- # run: |
297
- # target/release/rustpython -m ensurepip
298
- # target/release/rustpython -c "import pip"
299
- # - name: Check whats_left is not broken
300
- # run: python -I whats_left.py
301
-
302
227
lalrpop :
303
228
if : ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
304
229
name : Generate parser with lalrpop
@@ -385,83 +310,3 @@ jobs:
385
310
- uses : Swatinem/rust-cache@v2
386
311
- name : Run tests under miri
387
312
run : cargo +nightly miri test -p rustpython-parser -- miri_test
388
-
389
- # wasm:
390
- # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
391
- # name: Check the WASM package and demo
392
- # needs: lalrpop
393
- # runs-on: ubuntu-latest
394
- # steps:
395
- # - uses: actions/checkout@v3
396
- # - name: Cache generated parser
397
- # uses: actions/cache@v3
398
- # with:
399
- # path: compiler/parser/python.rs
400
- # key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
401
- # - uses: dtolnay/rust-toolchain@stable
402
- #
403
- # - uses: Swatinem/rust-cache@v2
404
- # - name: install wasm-pack
405
- # run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
406
- # - name: install geckodriver
407
- # run: |
408
- # wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz
409
- # mkdir geckodriver
410
- # tar -xzf geckodriver-v0.30.0-linux64.tar.gz -C geckodriver
411
- # - uses: actions/setup-python@v4
412
- # with:
413
- # python-version: "3.11"
414
- # - run: python -m pip install -r requirements.txt
415
- # working-directory: ./wasm/tests
416
- # - uses: actions/setup-node@v3
417
- # - name: run test
418
- # run: |
419
- # export PATH=$PATH:`pwd`/../../geckodriver
420
- # npm install
421
- # npm run test
422
- # env:
423
- # NODE_OPTIONS: "--openssl-legacy-provider"
424
- # working-directory: ./wasm/demo
425
- # - name: build notebook demo
426
- # if: github.ref == 'refs/heads/release'
427
- # run: |
428
- # npm install
429
- # npm run dist
430
- # mv dist ../demo/dist/notebook
431
- # env:
432
- # NODE_OPTIONS: "--openssl-legacy-provider"
433
- # working-directory: ./wasm/notebook
434
- # - name: Deploy demo to Github Pages
435
- # if: success() && github.ref == 'refs/heads/release'
436
- # uses: peaceiris/actions-gh-pages@v2
437
- # env:
438
- # ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEMO_DEPLOY_KEY }}
439
- # PUBLISH_DIR: ./wasm/demo/dist
440
- # EXTERNAL_REPOSITORY: RustPython/demo
441
- # PUBLISH_BRANCH: master
442
- #
443
- # wasm-wasi:
444
- # if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
445
- # name: Run snippets and cpython tests on wasm-wasi
446
- # needs: lalrpop
447
- # runs-on: ubuntu-latest
448
- # steps:
449
- # - uses: actions/checkout@v3
450
- # - name: Cache generated parser
451
- # uses: actions/cache@v3
452
- # with:
453
- # path: compiler/parser/python.rs
454
- # key: lalrpop-${{ hashFiles('compiler/parser/python.lalrpop') }}
455
- # - uses: dtolnay/rust-toolchain@stable
456
- # with:
457
- # target: wasm32-wasi
458
- #
459
- # - uses: Swatinem/rust-cache@v2
460
- # - name: Setup Wasmer
461
- # uses: wasmerio/setup-wasmer@v2
462
- # - name: Install clang
463
- # run: sudo apt-get update && sudo apt-get install clang -y
464
- # - name: build rustpython
465
- # run: cargo build --release --target wasm32-wasi --features freeze-stdlib,stdlib --verbose
466
- # - name: run snippets
467
- # run: wasmer run --dir . target/wasm32-wasi/release/rustpython.wasm -- extra_tests/snippets/stdlib_random.py
0 commit comments