Skip to content

Commit

Permalink
Add a basic GitHub Actions configuration (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Jun 19, 2023
1 parent a3dc69d commit 5150d4c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Set up Rust
run: rustup show

- uses: mozilla-actions/sccache-action@v0.0.3

- run: cargo test
working-directory: pyo3-polars

- run: make install
working-directory: example

- run: venv/bin/python run.py
working-directory: example
4 changes: 4 additions & 0 deletions pyo3-polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
//!
//! From `src/lib.rs`.
//! ```rust
//! # use polars::prelude::*;
//! # use pyo3::prelude::*;
//! # use pyo3_polars::PyDataFrame;
//!
//! #[pyfunction]
//! fn my_cool_function(pydf: PyDataFrame) -> PyResult<PyDataFrame> {
//! let df: DataFrame = pydf.into();
Expand Down

0 comments on commit 5150d4c

Please sign in to comment.