Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on:
pull_request:
push:

jobs:
fast-tests:
name: Fast Tests (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up uv
uses: astral-sh/setup-uv@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --all-extras

- name: Run fast test lane
env:
RUN_INTEGRATION: "1"
RUN_LIVE_API: "0"
RUN_EXPENSIVE: "0"
RUN_DOCKER: "0"
run: >
uv run pytest massgen/tests
-m "not live_api and not docker and not expensive"
-k "not test_timeline_snapshot_final_presentation_lock_mode and not test_timeline_snapshot_real_tui_final_presentation_lock_mode"
-q --tb=no
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,6 @@ webui/mockups/

node_modules/
.sandbox_test/
.playwright*
.serena/
.specify/
16 changes: 15 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repos:
- id: fix-encoding-pragma
- id: detect-private-key
- id: trailing-whitespace
exclude: ^massgen/tests/frontend/__snapshots__/.*\.svg$
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
Expand Down Expand Up @@ -116,6 +117,19 @@ repos:
args: [.]
- repo: local
hooks:
- id: run-non-api-tests-on-push
name: Run non-API test lane before push
entry: sh -c 'uv run pytest massgen/tests --run-integration -m "not live_api and not docker and not expensive" -q --tb=no'
language: system
pass_filenames: false
always_run: true
stages: [pre-push]
- id: sync-agent-instructions
name: Keep CLAUDE.md and AGENTS.md synchronized
entry: python scripts/precommit_sync_agent_instructions.py
language: system
files: ^(CLAUDE|AGENTS)\.md$
pass_filenames: false
# Need to fix locally
# - id: validate-configs
# name: Validate MassGen configuration files
Expand Down Expand Up @@ -152,4 +166,4 @@ repos:
# done' --
# language: system
# files: ^massgen/.*\.py$
# pass_filenames: true
# pass_filenames: true
Loading
Loading