-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pola-rs:main' into round-durations
- Loading branch information
Showing
916 changed files
with
34,441 additions
and
11,962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Code coverage | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.rs' | ||
- '**.py' | ||
- .github/workflows/codecov.yml | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**.rs' | ||
- '**.py' | ||
- .github/workflows/codecov.yml | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
working-directory: py-polars | ||
shell: bash | ||
|
||
jobs: | ||
coverage: | ||
name: Code Coverage | ||
runs-on: macos-latest | ||
env: | ||
RUSTFLAGS: '-C instrument-coverage --cfg=coverage --cfg=coverage_nightly --cfg=trybuild_no_target' | ||
RUST_BACKTRACE: 1 | ||
LLVM_PROFILE_FILE: '/Users/runner/work/polars/polars/target/polars-%p-%3m.profraw' | ||
CARGO_LLVM_COV: 1 | ||
CARGO_LLVM_COV_SHOW_ENV: 1 | ||
CARGO_LLVM_COV_TARGET_DIR: '/Users/runner/work/polars/polars/target' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Create virtual environment | ||
run: | | ||
python -m venv .venv | ||
echo "$GITHUB_WORKSPACE/py-polars/.venv/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: pip install -r requirements-dev.txt | ||
|
||
- name: Set up Rust | ||
run: rustup component add llvm-tools-preview | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.ref_name == 'main' }} | ||
|
||
- name: Prepare coverage | ||
run: cargo llvm-cov clean --workspace | ||
|
||
- name: Run tests | ||
run: > | ||
cargo test --all-features | ||
-p polars-arrow | ||
-p polars-compute | ||
-p polars-core | ||
-p polars-io | ||
-p polars-lazy | ||
-p polars-ops | ||
-p polars-plan | ||
-p polars-row | ||
-p polars-sql | ||
-p polars-time | ||
-p polars-utils | ||
- name: Run Rust integration tests | ||
run: cargo test --all-features -p polars --test it | ||
|
||
- name: Install Polars | ||
run: maturin develop | ||
|
||
- name: Run Python tests | ||
run: pytest --cov -n auto --dist loadgroup -m "not benchmark and not docs" --cov-report xml:main.xml | ||
continue-on-error: true | ||
|
||
- name: Run Python tests - async reader | ||
env: | ||
POLARS_FORCE_ASYNC: 1 | ||
run: pytest --cov -m "not benchmark and not docs" tests/unit/io/ --cov-report xml:async.xml | ||
continue-on-error: true | ||
|
||
- name: Report coverage | ||
run: cargo llvm-cov report --lcov --output-path coverage.lcov | ||
|
||
- name: Upload coverage information | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: py-polars/coverage.lcov,py-polars/main.xml,py-polars/async.xml | ||
name: macos | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ jobs: | |
- name: Lint Markdown and TOML | ||
uses: dprint/[email protected] | ||
- name: Spell Check with Typos | ||
uses: crate-ci/typos@v1.17.2 | ||
uses: crate-ci/typos@v1.18.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.