1
1
name : CI
2
2
3
- permissions : {}
3
+ permissions : { }
4
4
5
5
on :
6
6
push :
7
- branches : [main]
7
+ branches : [ main ]
8
8
pull_request :
9
9
workflow_dispatch :
10
10
@@ -26,76 +26,74 @@ jobs:
26
26
runs-on : ubuntu-latest
27
27
outputs :
28
28
# Flag that is raised when any code that affects parser is changed
29
- parser : ${{ steps.changed.outputs.parser_any_changed }}
29
+ parser : " true "
30
30
# Flag that is raised when any code that affects linter is changed
31
- linter : ${{ steps.changed.outputs.linter_any_changed }}
31
+ linter : " true "
32
32
# Flag that is raised when any code that affects formatter is changed
33
- formatter : ${{ steps.changed.outputs.formatter_any_changed }}
33
+ formatter : " true "
34
34
# Flag that is raised when any code is changed
35
35
# This is superset of the linter and formatter
36
- code : ${{ steps.changed.outputs.code_any_changed }}
36
+ code : " true "
37
37
# Flag that is raised when any code that affects the fuzzer is changed
38
- fuzz : ${{ steps.changed.outputs.fuzz_any_changed }}
38
+ fuzz : " true "
39
39
steps :
40
40
- uses : actions/checkout@v4
41
41
with :
42
42
fetch-depth : 0
43
43
persist-credentials : false
44
44
45
- - uses : tj-actions/changed-files@v45
46
- id : changed
47
- with :
48
- files_yaml : |
49
- parser:
50
- - Cargo.toml
51
- - Cargo.lock
52
- - crates/ruff_python_trivia/**
53
- - crates/ruff_source_file/**
54
- - crates/ruff_text_size/**
55
- - crates/ruff_python_ast/**
56
- - crates/ruff_python_parser/**
57
- - python/py-fuzzer/**
58
- - .github/workflows/ci.yaml
59
-
60
- linter:
61
- - Cargo.toml
62
- - Cargo.lock
63
- - crates/**
64
- - "!crates/red_knot*/**"
65
- - "!crates/ruff_python_formatter/**"
66
- - "!crates/ruff_formatter/**"
67
- - "!crates/ruff_dev/**"
68
- - scripts/*
69
- - python/**
70
- - .github/workflows/ci.yaml
71
-
72
- formatter:
73
- - Cargo.toml
74
- - Cargo.lock
75
- - crates/ruff_python_formatter/**
76
- - crates/ruff_formatter/**
77
- - crates/ruff_python_trivia/**
78
- - crates/ruff_python_ast/**
79
- - crates/ruff_source_file/**
80
- - crates/ruff_python_index/**
81
- - crates/ruff_text_size/**
82
- - crates/ruff_python_parser/**
83
- - crates/ruff_dev/**
84
- - scripts/*
85
- - python/**
86
- - .github/workflows/ci.yaml
87
-
88
- fuzz:
89
- - fuzz/Cargo.toml
90
- - fuzz/Cargo.lock
91
- - fuzz/fuzz_targets/**
92
-
93
- code:
94
- - "**/*"
95
- - "!**/*.md"
96
- - "crates/red_knot_python_semantic/resources/mdtest/**/*.md"
97
- - "!docs/**"
98
- - "!assets/**"
45
+ # TODO: Replace with plain git command?
46
+ # files_yaml: |
47
+ # parser:
48
+ # - Cargo.toml
49
+ # - Cargo.lock
50
+ # - crates/ruff_python_trivia/**
51
+ # - crates/ruff_source_file/**
52
+ # - crates/ruff_text_size/**
53
+ # - crates/ruff_python_ast/**
54
+ # - crates/ruff_python_parser/**
55
+ # - python/py-fuzzer/**
56
+ # - .github/workflows/ci.yaml
57
+ #
58
+ # linter:
59
+ # - Cargo.toml
60
+ # - Cargo.lock
61
+ # - crates/**
62
+ # - "!crates/red_knot*/**"
63
+ # - "!crates/ruff_python_formatter/**"
64
+ # - "!crates/ruff_formatter/**"
65
+ # - "!crates/ruff_dev/**"
66
+ # - scripts/*
67
+ # - python/**
68
+ # - .github/workflows/ci.yaml
69
+ #
70
+ # formatter:
71
+ # - Cargo.toml
72
+ # - Cargo.lock
73
+ # - crates/ruff_python_formatter/**
74
+ # - crates/ruff_formatter/**
75
+ # - crates/ruff_python_trivia/**
76
+ # - crates/ruff_python_ast/**
77
+ # - crates/ruff_source_file/**
78
+ # - crates/ruff_python_index/**
79
+ # - crates/ruff_text_size/**
80
+ # - crates/ruff_python_parser/**
81
+ # - crates/ruff_dev/**
82
+ # - scripts/*
83
+ # - python/**
84
+ # - .github/workflows/ci.yaml
85
+ #
86
+ # fuzz:
87
+ # - fuzz/Cargo.toml
88
+ # - fuzz/Cargo.lock
89
+ # - fuzz/fuzz_targets/**
90
+ #
91
+ # code:
92
+ # - "**/*"
93
+ # - "!**/*.md"
94
+ # - "crates/red_knot_python_semantic/resources/mdtest/**/*.md"
95
+ # - "!docs/**"
96
+ # - "!assets/**"
99
97
100
98
cargo-fmt :
101
99
name : " cargo fmt"
0 commit comments