Skip to content
Open
Changes from 2 commits
Commits
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
47 changes: 47 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Unit Tests

on:
push:
branches: [main]
paths-ignore:
- '*.md'
- 'docs/**'
- 'scripts/**'
- '.github/**'
- '.vscode/**'
- '.cursor/**'
- '.claude/**'
- 'Makefile'
- '.env.example'
- '.gitattributes'
- 'example_prompts/**'
- 'example_project/**'
- 'example_workspace/**'
- 'staging/**'
- '*.log'
- 'LICENSE'
pull_request:
branches: [main]

jobs:
unit-tests:
if: github.event.pull_request.draft != true
name: Run Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 30

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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install dependencies
run: pip install -e ".[dev]" pytest-timeout

- name: Run unit tests
run: pytest tests/ -m "not integration and not e2e and not real" -v --tb=short --timeout=60 -n auto
Loading