File tree 1 file changed +16
-15
lines changed
1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
19
- - run : rustup toolchain install stable --profile minimal
20
- - name : Rust Cache
21
- uses : Swatinem/rust-cache@v2
22
- with :
23
- key : ${{ runner.os }}-rust-${{ matrix.python-version }}
24
- - name : Rust build
25
- run : cargo build --verbose
26
- - name : Rust tests
27
- run : cargo test --verbose
28
-
29
19
- uses : actions/setup-python@v5
30
20
with :
31
21
python-version : ${{ matrix.python-version }}
43
33
run : |
44
34
source .venv/bin/activate
45
35
pip install maturin pytest mypy ruff
36
+ - name : Check Python formatting
37
+ run : |
38
+ source .venv/bin/activate
39
+ python -m ruff format --check .
40
+
41
+ - run : rustup toolchain install stable --profile minimal
42
+ - name : Rust Cache
43
+ uses : Swatinem/rust-cache@v2
44
+ with :
45
+ key : ${{ runner.os }}-rust-${{ matrix.python-version }}
46
+ - name : Rust build
47
+ run : cargo build --verbose
48
+ - name : Rust tests
49
+ run : cargo test --verbose
50
+
46
51
- name : Python build
47
52
run : |
48
53
source .venv/bin/activate
54
59
- name : Python tests
55
60
run : |
56
61
source .venv/bin/activate
57
- pytest python/cocoindex/tests
58
- - name : Check Python formatting
59
- run : |
60
- source .venv/bin/activate
61
- python -m ruff format --check .
62
+ pytest python/cocoindex/tests
You can’t perform that action at this time.
0 commit comments