Skip to content

Commit 403080a

Browse files
VinciGit00claude
andcommitted
ci: reduce GitHub Actions costs by ~85% on PRs
- Limit OS matrix to ubuntu-only on PRs (macOS/Windows on push only) - Reduce Python matrix from 3.10/3.11/3.12 to 3.10/3.12 - Run benchmarks only on push to main - Run code-quality checks only on push events - Remove Playwright install from benchmark job - Delete duplicate code-quality.yml workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ed8685d commit 403080a

File tree

2 files changed

+5
-48
lines changed

2 files changed

+5
-48
lines changed

.github/workflows/code-quality.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/test-suite.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
19-
python-version: ['3.10', '3.11', '3.12']
18+
os: ${{ github.event_name == 'pull_request' && fromJSON('["ubuntu-latest"]') || fromJSON('["ubuntu-latest", "macos-latest", "windows-latest"]') }}
19+
python-version: ['3.10', '3.12']
2020

2121
steps:
2222
- name: Checkout code
@@ -49,7 +49,7 @@ jobs:
4949
flags: unittests
5050
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
5151
token: ${{ secrets.CODECOV_TOKEN }}
52-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
52+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
5353

5454
integration-tests:
5555
name: Integration Tests
@@ -100,6 +100,7 @@ jobs:
100100
benchmark-tests:
101101
name: Performance Benchmarks
102102
runs-on: ubuntu-latest
103+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
103104

104105
steps:
105106
- name: Checkout code
@@ -117,10 +118,6 @@ jobs:
117118
run: |
118119
uv sync
119120
120-
- name: Install Playwright browsers
121-
run: |
122-
uv run playwright install chromium
123-
124121
- name: Run performance benchmarks
125122
env:
126123
OPENAI_APIKEY: ${{ secrets.OPENAI_APIKEY }}
@@ -143,6 +140,7 @@ jobs:
143140
code-quality:
144141
name: Code Quality Checks
145142
runs-on: ubuntu-latest
143+
if: github.event_name == 'push'
146144

147145
steps:
148146
- name: Checkout code

0 commit comments

Comments
 (0)