Skip to content

BLD, TST: Build and test Pyodide wheels for pandas in CI #57896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
May 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
748432e
Create initial Pyodide workflow
agriyakhetarpal Mar 4, 2024
05b2400
Do not import pandas folder from the repo
agriyakhetarpal Mar 5, 2024
f159469
Install hypothesis for testing
agriyakhetarpal Mar 5, 2024
1713c86
Add pytest decorator to skip tests on WASM
agriyakhetarpal Mar 5, 2024
47f48a6
Skip `time.tzset()` tests on WASM platforms
agriyakhetarpal Mar 5, 2024
6cf568e
Skip file system access tests on WASM
agriyakhetarpal Mar 5, 2024
9fe1904
Skip two more tzset test failures
agriyakhetarpal Mar 5, 2024
3f07fa9
Skip two more FS failures on WASM
agriyakhetarpal Mar 5, 2024
bbc8868
Resolve last two tzset failures on WASM
agriyakhetarpal Mar 5, 2024
f049ac2
Add a `WASM` constant for Emscripten platform checks
agriyakhetarpal Mar 5, 2024
4d4c017
Fix floating point imprecision with `np.timedelta64`
agriyakhetarpal Mar 5, 2024
feaac77
Mark tz OverflowError as xfail on WASM
agriyakhetarpal Mar 5, 2024
f8b5831
Merge branch 'main' into add-emscripten-ci
agriyakhetarpal Mar 18, 2024
d54d198
Try to fix OverflowError with date ranges
agriyakhetarpal Mar 20, 2024
294ab6e
Move job to unit tests workflow, withdraw env vars
agriyakhetarpal Mar 20, 2024
cc233e4
Fix up a few style errors, use WASM variable
agriyakhetarpal Mar 20, 2024
dab4675
Merge branch 'main' into add-emscripten-ci
agriyakhetarpal Apr 1, 2024
a944f52
Bump Pyodide to `0.25.1`
agriyakhetarpal Apr 1, 2024
8a61292
Merge latest changes from main
agriyakhetarpal May 3, 2024
6ba8636
Use shorter job name
agriyakhetarpal May 3, 2024
75da87f
Skip test where warning is not raised properly
agriyakhetarpal May 3, 2024
8c357a3
Don't run `test_date_time` loc check on WASM
agriyakhetarpal May 3, 2024
2a3270f
Don't run additional loc checks in `test_sas7bdat`
agriyakhetarpal May 3, 2024
e1002f5
Disable WASM OverflowError
agriyakhetarpal May 3, 2024
13973bb
Skip tests requiring fp exception support
agriyakhetarpal May 3, 2024
24b3e6d
xfail tests that require stricter tolerances
agriyakhetarpal May 3, 2024
dce2705
xfail test where `OverflowError`s are received
agriyakhetarpal May 3, 2024
029de34
Merge branch 'main' into add-emscripten-ci
agriyakhetarpal May 3, 2024
7f4715f
Remove upper-pin from `pydantic`
agriyakhetarpal May 3, 2024
9f46528
Better skip messages via `pytest.skipif` decorator
agriyakhetarpal May 3, 2024
51f8893
Import `WASM` var via public API where possible
agriyakhetarpal May 3, 2024
ab911d1
Unpin `pytest` for Pyodide job
agriyakhetarpal May 3, 2024
b262b35
Merge main again
agriyakhetarpal May 3, 2024
7371f64
Add reason attr when using boolean to skip test
agriyakhetarpal May 3, 2024
05b19a4
Merge branch 'main' into add-emscripten-ci
agriyakhetarpal May 3, 2024
ef7a3ab
Don't xfail, skip tests that bring `OverflowError`s
agriyakhetarpal May 3, 2024
c089852
Skip timedelta test that runs well only on 64-bit
agriyakhetarpal May 3, 2024
6a907c1
Skip tests that use `np.timedelta64`
agriyakhetarpal May 3, 2024
96488f4
Merge branch 'main' into add-emscripten-ci
mroeschke May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix floating point imprecision with np.timedelta64
  • Loading branch information
agriyakhetarpal committed Mar 5, 2024
commit 4d4c0172e96c6650d09f01381cd4ee6f8e6f2426
10 changes: 5 additions & 5 deletions pandas/tests/io/sas/test_sas7bdat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
import pytest

from pandas.compat import IS64
from pandas.compat import IS64, WASM
from pandas.errors import EmptyDataError

import pandas as pd
Expand Down Expand Up @@ -190,7 +190,7 @@ def test_date_time(datapath):
res = df0["DateTimeHi"].astype("M8[us]").dt.round("ms")
df0["DateTimeHi"] = res.astype("M8[ms]")

if not IS64:
if (not IS64) or (WASM):
# No good reason for this, just what we get on the CI
df0.loc[0, "DateTimeHi"] += np.timedelta64(1, "ms")
df0.loc[[2, 3], "DateTimeHi"] -= np.timedelta64(1, "ms")
Expand Down Expand Up @@ -285,7 +285,7 @@ def test_max_sas_date(datapath):
columns=["text", "dt_as_float", "dt_as_dt", "date_as_float", "date_as_date"],
)

if not IS64:
if (not IS64) or (WASM):
# No good reason for this, just what we get on the CI
expected.loc[:, "dt_as_dt"] -= np.timedelta64(1, "ms")

Expand Down Expand Up @@ -328,7 +328,7 @@ def test_max_sas_date_iterator(datapath):
columns=col_order,
),
]
if not IS64:
if (not IS64) or (WASM):
# No good reason for this, just what we get on the CI
expected[0].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
expected[1].loc[0, "dt_as_dt"] -= np.timedelta64(1, "ms")
Expand Down Expand Up @@ -359,7 +359,7 @@ def test_null_date(datapath):
),
},
)
if not IS64:
if (not IS64) or (WASM):
# No good reason for this, just what we get on the CI
expected.loc[0, "datetimecol"] -= np.timedelta64(1, "ms")
tm.assert_frame_equal(df, expected)
Expand Down