mirror of
https://github.com/smittix/intercept.git
synced 2026-06-09 14:41:55 -07:00
ci: split test suite into two parallel jobs to prevent OOM
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>
This commit is contained in:
@@ -15,12 +15,21 @@ jobs:
|
||||
|
||||
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
|
||||
run: pytest --tb=short -q
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user