Skip to content

Commit

Permalink
refactor: Add new streaming engine to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Oct 1, 2024
1 parent 2e2823a commit 1105d63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
env:
RUSTFLAGS: -C embed-bitcode -D warnings
working-directory: py-polars
run: maturin develop --release -- -C codegen-units=8 -C lto=thin -C target-cpu=native
run: maturin develop --features new_streaming --release -- -C codegen-units=8 -C lto=thin -C target-cpu=native

- name: Run benchmark tests
uses: CodSpeedHQ/action@v3
Expand All @@ -82,3 +82,9 @@ jobs:
- name: Run non-benchmark tests
working-directory: py-polars
run: pytest -m 'not benchmark and not debug' -n auto --dist loadgroup

- name: Run non-benchmark tests on new streaming engine
working-directory: py-polars
env:
POLARS_AUTO_NEW_STREAMING: 1
run: pytest -n auto --dist loadgroup -m "not may_fail_auto_streaming and not slow and not write_disk and not release and not docs and not hypothesis and not benchmark and not ci_only"
8 changes: 7 additions & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
save-if: ${{ github.ref_name == 'main' }}

- name: Install Polars
run: maturin develop
run: maturin develop --features new_streaming

- name: Run doctests
if: github.ref_name != 'main' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
Expand All @@ -94,6 +94,12 @@ jobs:
if: github.ref_name != 'main'
run: pytest -n auto --dist loadgroup -m "not release and not benchmark and not docs"

- name: Run tests with new streaming engine
if: github.ref_name != 'main'
env:
POLARS_AUTO_NEW_STREAMING: 1
run: pytest -n auto --dist loadgroup -m "not may_fail_auto_streaming and not slow and not write_disk and not release and not docs and not hypothesis and not benchmark and not ci_only"

- name: Run tests async reader tests
if: github.ref_name != 'main' && matrix.os != 'windows-latest'
env:
Expand Down

0 comments on commit 1105d63

Please sign in to comment.