mirror of
https://github.com/smittix/intercept.git
synced 2026-07-29 02:58:11 -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:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
group: ["a-l", "m-z"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- run: pip install -r requirements-dev.txt
|
- run: pip install -r requirements-dev.txt
|
||||||
- name: Run tests
|
- name: Run tests (${{ matrix.group }})
|
||||||
run: pytest --tb=short -q
|
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
|
continue-on-error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user