Implement CI/CD with GitHub Actions and update roadmap: Add CI workflow for build, test, lint, and deploy steps. Mark CI/CD as complete in roadmap. Fix import path in test suite.

This commit is contained in:
2026-01-09 17:32:11 +00:00
parent 00758f16a5
commit b698a324a1
3 changed files with 49 additions and 2 deletions

47
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Poetry
run: python -m pip install --upgrade pip poetry
- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --with dev
- name: Install Playwright browsers
run: poetry run playwright install --with-deps chromium
- name: Build package
run: poetry build
- name: Static analysis
run: poetry run python -m compileall src
- name: Lint (errors only)
run: |
python -m pip install pylint
poetry run pylint --errors-only src/autometabuilder
- name: Unit tests
run: PYTHONPATH=src poetry run pytest tests/test_main.py tests/test_metadata.py tests/test_roadmap.py
- name: UI tests
run: PYTHONPATH=src poetry run pytest tests/ui