File tree 2 files changed +26
-16
lines changed
2 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,21 @@ permissions:
26
26
contents : read
27
27
28
28
jobs :
29
+ format-check :
30
+ name : Check Python formatting
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - uses : actions/setup-python@v5
35
+ with :
36
+ python-version : 3.11
37
+ - name : Install Ruff
38
+ run : |
39
+ pip install ruff
40
+ - name : Check Python formatting
41
+ run : |
42
+ ruff format --check .
43
+
29
44
test :
30
45
name : Run test
31
46
uses : ./.github/workflows/_test.yml
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
+
19
29
- uses : actions/setup-python@v5
20
30
with :
21
31
python-version : ${{ matrix.python-version }}
32
42
- name : Install Python toolchains
33
43
run : |
34
44
source .venv/bin/activate
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
-
45
+ pip install maturin pytest mypy
51
46
- name : Python build
52
47
run : |
53
48
source .venv/bin/activate
You can’t perform that action at this time.
0 commit comments