@@ -429,6 +429,13 @@ jobs:
429
429
uses : actions/setup-python@v5
430
430
with :
431
431
python-version : ' 3.12'
432
+ - name : Cache Emscripten
433
+ uses : actions/cache@v3
434
+ with :
435
+ path : emsdk-cache
436
+ key : emsdk-${{ runner.os }}-${{ hashFiles('.github/workflows/unit-tests.yml') }}
437
+ restore-keys : |
438
+ emsdk-${{ runner.os }}-
432
439
433
440
- name : Set up Emscripten toolchain
434
441
uses : mymindstorm/setup-emsdk@v14
@@ -437,7 +444,9 @@ jobs:
437
444
actions-cache-folder : emsdk-cache
438
445
439
446
- name : Install pyodide-build
440
- run : pip install "pyodide-build>=0.29.2"
447
+ run : |
448
+ python -m pip install --upgrade pip
449
+ python -m pip install "pyodide-build>=0.29.2"
441
450
442
451
- name : Build pandas for Pyodide
443
452
run : |
@@ -452,6 +461,7 @@ jobs:
452
461
env :
453
462
pyodide-version : ' 0.27.1'
454
463
run : |
464
+ set -e # Stop on error
455
465
pyodide xbuildenv install ${{ env.pyodide-version }}
456
466
pyodide venv .venv-pyodide
457
467
source .venv-pyodide/bin/activate
@@ -463,6 +473,7 @@ jobs:
463
473
run : |
464
474
source .venv-pyodide/bin/activate
465
475
pip install pytest hypothesis
466
- # do not import pandas from the checked out repo
467
- cd ..
468
- python -c 'import pandas as pd; pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db"])'
476
+ # Debugging flags for numerical issues
477
+ pytest pandas --maxfail=5 --tb=short -m "not clipboard and not
478
+ single_cpu and not slow and not network
479
+ and not db" --disable-warnings --durations=10
0 commit comments