-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (34 loc) · 829 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (34 loc) · 829 Bytes
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
name: CI
on:
pull_request:
types: [opened, ready_for_review, synchronize]
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.1
test:
needs: pre-commit
strategy:
matrix:
feature_flags: ["no-default-features", "all-features"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
run: cargo build --all --verbose
- name: test
run: cargo test --verbose
- name: build benchmarks
run: cargo test --benches --no-run --verbose
- name: clippy
run: cargo clippy --all
- name: docs
run: cargo doc --document-private-items --no-deps