File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ lint-and-format :
11+ name : Lint and Format
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
20+ with :
21+ version : " latest"
22+
23+ - name : Install dependencies
24+ run : |
25+ uv sync --group dev
26+
27+ - name : Check code formatting with Ruff
28+ run : |
29+ uv run ruff format --check .
30+
31+ - name : Run Ruff linter
32+ run : |
33+ uv run ruff check .
34+
35+ test :
36+ name : Test
37+ runs-on : ubuntu-latest
38+ strategy :
39+ matrix :
40+ python-version : ['3.12', '3.13']
41+
42+ steps :
43+ - name : Checkout code
44+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+
46+ - name : Install uv
47+ uses : astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
48+ with :
49+ version : " latest"
50+ enable-cache : true
51+
52+ - name : Install dependencies
53+ run : |
54+ uv sync --group dev --python ${{ matrix.python-version }}
55+
56+ - name : Run tests
57+ run : |
58+ uv run pytest --cov=mkdocs_tech_radar --cov-report=xml --cov-report=term-missing
59+
60+ - name : Upload coverage to Codecov
61+ uses : codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
62+ with :
63+ file : ./coverage.xml
64+ fail_ci_if_error : false
Original file line number Diff line number Diff line change 11{
22 "cSpell.words" : [
3+ " commitizen" ,
34 " pyproject"
45 ]
56}
You can’t perform that action at this time.
0 commit comments