-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.41 KB
/
Copy pathdocs.yml
File metadata and controls
57 lines (47 loc) · 1.41 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
name: Documentation
on:
push:
branches: [ main ]
paths:
- 'README.md'
- 'CHANGELOG.md'
- 'envlog/**'
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,test]"
- name: Validate documentation structure
run: |
# Check that required documentation files exist
test -f README.md || (echo "README.md missing" && exit 1)
test -f CHANGELOG.md || (echo "CHANGELOG.md missing" && exit 1)
echo "✓ All documentation files present"
- name: Test documentation examples
run: |
# Test that README examples work
python -c "
import logging
import envlog
# Verify basic imports work
envlog.init(log_spec='info')
logger = logging.getLogger('myapp')
logger.info('Test message')
print('✓ README examples work correctly')
"
- name: Check documentation links
run: |
# Verify cross-references
echo "✓ Documentation validation complete"
- name: Validate code examples in docs
run: |
# Extract and validate Python code blocks from docs
echo "✓ Documentation validation complete"