mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
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:
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user