-
Notifications
You must be signed in to change notification settings - Fork 42
47 lines (36 loc) · 983 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/[email protected]
- run: cargo test
working-directory: pyo3-polars
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack test --each-feature
working-directory: pyo3-polars
- run: make install
working-directory: example/extend_polars_python_dispatch
- run: venv/bin/python run.py
working-directory: example/extend_polars_python_dispatch