-
Notifications
You must be signed in to change notification settings - Fork 50
50 lines (44 loc) · 1.23 KB
/
python-bindings.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
48
49
50
name: Python bindings CI
on:
push:
branches: [ main ]
pull_request:
paths:
# When we change pyproject.toml, we want to ensure that the maturin builds still work
- test-data/**
- crates/**
- Cargo.*
# When something in the bindings themselves changes
- 'py-rattler-build/**/*'
# Or when this workflow changes
- '.github/workflows/python-bindings.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
format_lint_test:
name: Format, Lint and Test the Python bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.37.0
manifest-path: py-rattler-build/pixi.toml
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt
- name: Format and Lint
run: |
cd py-rattler-build
pixi run -e test lint
pixi run -e test fmt-check
- name: Run tests
run: |
cd py-rattler-build
pixi run -e test test --color=yes