-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (43 loc) · 1.25 KB
/
main.yml
File metadata and controls
51 lines (43 loc) · 1.25 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
name: main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
strategy:
matrix:
python-version: ["3.10", "3.14"]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --locked --dev
- name: Run unit-tests with coverage
run: uv run pytest --cov --cov-report=xml
- name: Run codelimit
run: |
echo "Scan codebase"
uv run codelimit scan .
echo "Generate report"
uv run codelimit report .
echo "Generate report in Markdown"
uv run codelimit report --format markdown .
echo "Generate findings"
uv run codelimit findings .
echo "Generate findings (Markdown)"
uv run codelimit findings --format markdown .
- name: Build and run codelimit binary
run: |
uv run pyinstaller -n codelimit -F codelimit/__main__.py
./dist/codelimit scan .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3