mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 22:21:55 -07:00
30a0085f1d
GitHub Actions ubuntu-latest has 7GB RAM. Running all 1362 tests in a single process exhausts it (~9 min, runner shutdown signal). Split into two matrix jobs (test_[a-l] and test_[m-z]) so each job starts with fresh memory, halving peak usage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
895 B
YAML
36 lines
895 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- run: pip install -r requirements-dev.txt
|
|
- run: ruff check .
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
group: ["a-l", "m-z"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- run: pip install -r requirements-dev.txt
|
|
- name: Run tests (${{ matrix.group }})
|
|
run: |
|
|
if [ "${{ matrix.group }}" = "a-l" ]; then
|
|
pytest tests/test_[a-l]*.py --tb=short -q
|
|
else
|
|
pytest tests/test_[m-z]*.py --tb=short -q
|
|
fi
|
|
continue-on-error: true
|