Skip to content

Commit

Permalink
CI: run python tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 16, 2021
1 parent a460916 commit cc64aa0
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Windows tests
on:
- pull_request
jobs:
test:
test-rust:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -15,4 +15,34 @@ jobs:
- name: Run tests
run: |
cd polars && make test
cd ../py-polars && ./tasks.sh build-run-tests
test-python:
name: Build and test Python
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-09-14
override: true
components: rustfmt, clippy
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r py-polars/build.requirements.txt
- name: Run tests
shell: bash
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2021-09-14 && ./tasks.sh build-run-tests
cargo clippy
# test if we can import polars without any requirements
- name: import polars
run: |
pip uninstall pandas -y
python -c "import polars"

0 comments on commit cc64aa0

Please sign in to comment.