Skip to content

Commit 0873b32

Browse files
authored
Merge pull request #359 from lincc-frameworks/delucchi/windows
Confirm behavior under windows.
2 parents 82846c3 + 15124f3 commit 0873b32

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will install Python dependencies and run tests in a Windows environment.
2+
# This is intended to catch any file-system specific issues, and so runs less
3+
# frequently than other test suites.
4+
5+
name: Windows unit test
6+
7+
on:
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
jobs:
14+
build:
15+
16+
runs-on: windows-latest
17+
strategy:
18+
matrix:
19+
python-version: ['3.10']
20+
21+
steps:
22+
- uses: actions/checkout@v5
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -e .[dev]
31+
- name: Run unit tests with pytest
32+
run: |
33+
python -m pytest tests

tests/nested_pandas/nestedframe/test_io.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ def test_read_empty_parquet():
302302
"""Test that we can read empty parquet files"""
303303
orig_nf = generate_data(1, 2).iloc[:0]
304304

305-
with tempfile.NamedTemporaryFile("wb", suffix="parquet") as tmpfile:
305+
with tempfile.NamedTemporaryFile("wb", suffix=".parquet") as tmpfile:
306+
tmpfile.close()
306307
orig_nf.to_parquet(tmpfile.name)
307308
# All columns
308309
# Do not check dtype because of:
@@ -333,7 +334,8 @@ def test_read_parquet_list_autocast():
333334
"d": [[10, 20, 30], [40, 50, 60], [70, 80, 90]],
334335
}
335336
)
336-
with tempfile.NamedTemporaryFile("wb", suffix="parquet") as tmpfile:
337+
with tempfile.NamedTemporaryFile("wb", suffix=".parquet") as tmpfile:
338+
tmpfile.close()
337339
list_nf.to_parquet(tmpfile.name)
338340

339341
nf = read_parquet(tmpfile.name, autocast_list=True)

0 commit comments

Comments
 (0)