-
Notifications
You must be signed in to change notification settings - Fork 630
49 lines (39 loc) · 922 Bytes
/
code-checks.yml
File metadata and controls
49 lines (39 loc) · 922 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
44
45
46
47
48
49
name: Code checks
on:
push:
branches: [ "main", "7.*", "8.*", "9.*" ]
pull_request:
branches: [ "*" ]
paths:
- 'detection_rules/**/*.py'
- 'hunting/**/*.py'
- 'tests/**/*.py'
- 'lib/**/*.py'
jobs:
code-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip cache purge
pip install .[dev]
- name: Linting check
run: |
ruff check --exit-non-zero-on-fix
- name: Formatting check
run: |
ruff format --check
- name: Pyright check
run: |
pyright
- name: Python License Check
run: |
python -m detection_rules dev license-check