-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 976 Bytes
/
ci.yml
File metadata and controls
39 lines (31 loc) · 976 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
name: CI - Lint and Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Dependencies
run: uv pip install --system pre-commit pelican markdown invoke livereload
- name: Verify theme exists
run: |
if [ ! -d themes/reflex/templates ]; then
echo "Missing theme at themes/reflex. Ensure the theme files are committed (or checkout submodules if using a submodule)."
exit 1
fi
- name: Run pre-commit hooks
run: pre-commit run --all-files
- name: Test Pelican Build
run: pelican content -s pelicanconf.py -o output