Skip to content

Commit f0b29ef

Browse files
TEST: add unit tests for admonition styles
Add pytest suite covering admonition CSS rules introduced in this PR: - CSS coverage: all 26 admonition types present in source and minified files - Icon validation: correct Font Awesome 4.7 codepoints per type - Color validation: Dracula CSS variables used (no hardcoded hex) - Minified format: single-line, no comments, shorthand values Refs #29
1 parent 6de0eb1 commit f0b29ef

6 files changed

Lines changed: 447 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ❤️ Tests
2+
3+
on:
4+
pull_request:
5+
branches: ["main", "master", "develop"]
6+
push:
7+
branches: ["main", "master", "develop"]
8+
9+
jobs:
10+
test:
11+
name: Run Tests
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-version: ["3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- name: 📥 Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: 🐍 Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: ⚙️ Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install poetry
31+
poetry install
32+
33+
- name: ❤️ Run tests
34+
run: poetry run pytest --tb=short -v

0 commit comments

Comments
 (0)