Skip to content

Commit 02fe5db

Browse files
committed
feat: add CI/CD pipeline with GitHub Actions
- Add .github/workflows/ci.yml - Trigger on push and pull_request to main - Setup Python 3.11 - Install dependencies from requirements.txt - Compile-check all Python files with py_compile - Run test suite (test_discovery.py)
1 parent d5f778e commit 02fe5db

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: Compile-check all Python files
30+
run: |
31+
python -m py_compile deskbridge.py core/loader.py core/confirm.py core/installer.py wrappers/blender/actions.py wrappers/blender/cli.py wrappers/gimp/actions.py wrappers/gimp/cli.py wrappers/inkscape/actions.py wrappers/inkscape/cli.py wrappers/obsidian/actions.py wrappers/obsidian/cli.py wrappers/zotero/actions.py wrappers/zotero/cli.py hub/app.py hub/run_production.py tests/test_discovery.py
32+
33+
- name: Run test suite
34+
run: |
35+
python tests/test_discovery.py

0 commit comments

Comments
 (0)