-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
name: Benchmark | ||
|
||
on: | ||
- pull_request | ||
pull_request: | ||
paths: | ||
- 'polars/**' | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
name: Docs check | ||
|
||
on: | ||
- pull_request | ||
pull_request: | ||
paths: | ||
- 'py-polars/**' | ||
jobs: | ||
test: | ||
name: Docs check | ||
|
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,52 @@ | ||
name: Test python | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'py-polars/**' | ||
- 'polars/**' | ||
jobs: | ||
test-python: | ||
name: Build and test Python | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.6", "3.10" ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install latest Rust nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2021-12-02 | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r py-polars/build.requirements.txt | ||
- name: Run formatting checks | ||
run: | | ||
cd py-polars && black --check . && blackdoc --check . && isort --check . && rustup override set nightly-2021-12-02 && cargo fmt --all -- --check && cd .. | ||
- name: Run linting | ||
run: | | ||
cd py-polars && flake8 && cd .. | ||
- name: Run type checking | ||
run: | | ||
cd py-polars && mypy && cd .. | ||
- name: Run tests | ||
run: | | ||
export RUSTFLAGS="-C debuginfo=0" | ||
cd py-polars && rustup override set nightly-2021-12-02 && make venv && make test-with-cov | ||
cargo clippy | ||
- name: Check doc examples | ||
run: | | ||
cd py-polars && make doctest | ||
# test if we can import polars without any requirements | ||
- name: Import polars | ||
run: | | ||
pip uninstall pandas -y | ||
python -c "import polars" |
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,37 @@ | ||
name: Windows tests python | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'py-polars/**' | ||
jobs: | ||
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-12-02 | ||
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-12-02 && make build-and-test-no-venv | ||
cargo clippy | ||
# test if we can import polars without any requirements | ||
- name: Import polars | ||
run: | | ||
pip uninstall pandas -y | ||
python -c "import polars" |
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