-
Notifications
You must be signed in to change notification settings - Fork 8
103 lines (80 loc) · 2.36 KB
/
ci.yml
File metadata and controls
103 lines (80 loc) · 2.36 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run linting
run: uv run ruff check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run type checking
run: uv run ty check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest -v -m "not slow"
test-uvx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Test uvx aegis help
run: uvx --from . aegis --help
- name: Test uvx aegis-stack help
run: uvx --from . aegis-stack --help
- name: Test project creation with uvx aegis
run: |
uvx --from . aegis init test-uvx-aegis --to-version HEAD --no-interactive --yes --force
test -d test-uvx-aegis
test -f test-uvx-aegis/pyproject.toml
- name: Test project creation with uvx aegis-stack
run: |
uvx --from . aegis-stack init test-uvx-aegis-stack --to-version HEAD --no-interactive --yes --force
test -d test-uvx-aegis-stack
test -f test-uvx-aegis-stack/pyproject.toml
- name: Verify generated project structure
run: |
cd test-uvx-aegis
test -d app/components/backend
test -d app/components/frontend
test -f app/entrypoints/webserver.py