Skip to content

Commit 7b3d070

Browse files
committed
Fix Windows test command
1 parent 93af1c8 commit 7b3d070

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Build and upload to PyPI
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- numpy2
85
release:
96
types:
107
- published
@@ -117,6 +114,16 @@ jobs:
117114
cp -r {project}/data tmp_test_dir/data
118115
cd tmp_test_dir
119116
pytest
117+
CIBW_TEST_COMMAND_WINDOWS: |
118+
echo "Starting tests on Windows"
119+
mkdir tmp_test_dir
120+
echo "Copying test directory"
121+
xcopy /E /I /Y stochastic_arrow\test tmp_test_dir\test
122+
echo "Copying data directory"
123+
xcopy /E /I /Y stochastic_arrow\data tmp_test_dir\data
124+
cd tmp_test_dir
125+
echo "Running pytest on Windows"
126+
pytest -v
120127
CIBW_ENVIRONMENT: USE_CYTHON=1
121128
uses: pypa/cibuildwheel@v2.22.0
122129

0 commit comments

Comments
 (0)