@@ -0,0 +1,24 @@
|
|||||||
|
name: CI
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with: { python-version: "3.12" }
|
||||||
|
- name: Syntax check core modules
|
||||||
|
run: |
|
||||||
|
for f in glyphos/*.py xic_*.py glyph_*.py server.py; do
|
||||||
|
[ -f "$f" ] && python3 -m py_compile "$f" && echo "OK: $f" || echo "CHECK: $f"
|
||||||
|
done
|
||||||
|
- name: Test suite
|
||||||
|
run: |
|
||||||
|
for f in tests/*.py; do
|
||||||
|
[ -f "$f" ] && echo "Test: $f"
|
||||||
|
done
|
||||||
|
- name: Project stats
|
||||||
|
run: |
|
||||||
|
echo "Python files: $(find . -name '*.py' | wc -l)"
|
||||||
|
echo "Test files: $(find . -name 'test_*.py' | wc -l)"
|
||||||
|
echo "Total LOC: $(find . -name '*.py' -exec cat {} + | wc -l)"
|
||||||
Reference in New Issue
Block a user