-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.59 KB
/
ci.yml
File metadata and controls
60 lines (57 loc) · 1.59 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
---
name: CI
# yamllint disable-line rule:truthy
on:
push:
jobs:
lint:
runs-on: ubuntu-slim
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install latest version of uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: Run ruff format
run: uv run ruff format --check
- name: Run ruff check
run: uv run ruff check
- name: Run yamllint
run: git ls-files '*.yml' '*.yaml' | xargs uv run yamllint -s
typecheck:
runs-on: ubuntu-slim
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install latest version of uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --group dev
- name: Run mypy
run: uv run mypy --config-file pyproject.toml -p arcticsecurity
- name: Run ty
run: uv run ty check
pytest:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
needs:
- lint
- typecheck
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install latest version of uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: uv sync --group dev
- name: Run pytest
run: uv run pytest --doctest-modules