-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add e2e.yml #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
70a5959
3b4fee3
e0f4b6d
fb063a7
a855e93
adcb858
b55bff2
1a8ab5c
6827c72
a8f64d9
f966317
aaf2d2e
1f44868
46af185
a599c9f
edcb8ff
295bba0
843fb37
d9939be
e219ef1
114e7d9
36d3400
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,63 @@ | ||||||||||||||||||||||
| name: End-to-End Test | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| on: | ||||||||||||||||||||||
| push: | ||||||||||||||||||||||
| branches: [ main ] | ||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||
| branches: [ main ] | ||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||
| inputs: | ||||||||||||||||||||||
| target_repo: | ||||||||||||||||||||||
| description: 'Target repository to test against' | ||||||||||||||||||||||
| required: false | ||||||||||||||||||||||
| default: 'python/cpython' | ||||||||||||||||||||||
| clang_version: | ||||||||||||||||||||||
| description: 'Clang version to use' | ||||||||||||||||||||||
| required: false | ||||||||||||||||||||||
| default: '20' | ||||||||||||||||||||||
| style: | ||||||||||||||||||||||
| description: 'Clang-format style' | ||||||||||||||||||||||
| required: false | ||||||||||||||||||||||
| default: 'Google' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||
| e2e-test: | ||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Set up Python 3.13 | ||||||||||||||||||||||
| uses: actions/setup-python@v4 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| python-version: '3.13' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Install dependencies | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| python -m pip install --upgrade pip | ||||||||||||||||||||||
| python -m pip install pre-commit | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
||||||||||||||||||||||
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pre-commit | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format-${{ github.event.inputs.clang_version || '20' }} | |
| python -m pip install --upgrade pip | |
| python -m pip install pre-commit |
🤖 Prompt for AI Agents
In .github/workflows/e2e.yml around lines 35 to 39, the workflow installs pip
and pre-commit but does not install the required clang-format binary, causing
runs to fail. Add a step before installing pre-commit to explicitly install
clang-format on the runner, ensuring the correct version is available for
pre-commit hooks.
Uh oh!
There was an error while loading. Please reload this page.