-
Notifications
You must be signed in to change notification settings - Fork 67
71 lines (58 loc) · 1.53 KB
/
code-quality.yaml
File metadata and controls
71 lines (58 loc) · 1.53 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Code Quality Checks
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
push:
branches:
- main
- 'support/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CI: 1
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
RUSTUP_MAX_RETRIES: 10
PIXI_VERSION: "v0.63.2"
jobs:
code-quality:
name: Code Quality
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
with:
add-job-id-key: "false"
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: ${{ env.PIXI_VERSION }}
cache: true
activate-environment: true
manifest-path: icechunk-python/pyproject.toml
- name: Prepare pixi for development
run: |
just profile=ci develop
- name: Run formatting checks
run: |
just format --check
- name: Run clippy linting
run: |
just profile=ci lint --workspace --all-targets
- name: Run doc tests
run: |
just profile=ci doctest
- name: Python mypy type checking
run: |
just mypy
- name: Run pre-commit checks (skip Rust)
run: |
just py-pre-commit