-
Notifications
You must be signed in to change notification settings - Fork 45
45 lines (40 loc) · 1 KB
/
Copy pathci.yml
File metadata and controls
45 lines (40 loc) · 1 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test-macos:
name: build & test (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: dtolnay/rust-toolchain@1.87.0
with:
components: rustfmt, clippy
- name: Install with dev extras
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Correctness gate
run: pytest --timeout=600 -m "not perf and not slow and not live"
- name: Build wheel
run: pip wheel . --no-deps -w dist
gitleaks:
name: secret scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}