forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Add PlayGodot integration test workflow #3
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
Merged
randroid88
merged 2 commits into
automation
from
claude/fix-godot-proxy-auth-01UdHoXxLtSkpJfVYoHXSrWp
Dec 5, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Run PlayGodot integration tests against the automation build | ||
| # This validates that the automation protocol works correctly | ||
|
|
||
| name: PlayGodot Integration Tests | ||
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: ["🔗 GHA"] | ||
| types: [completed] | ||
| branches: [automation] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test-integration: | ||
| # Only run if the build succeeded | ||
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | ||
| runs-on: ubuntu-22.04 | ||
| name: PlayGodot Integration Tests | ||
|
|
||
| steps: | ||
| - name: Download Godot artifact | ||
| uses: dawidd6/action-download-artifact@v6 | ||
| with: | ||
| workflow: runner.yml | ||
| workflow_conclusion: success | ||
| name: linux-editor-mono | ||
| path: godot-bin | ||
| # Use run_id from the triggering workflow, or latest for manual trigger | ||
| run_id: ${{ github.event.workflow_run.id }} | ||
| if_no_artifact_found: warn | ||
|
|
||
| - name: Fallback - Download from latest successful run | ||
| if: failure() || hashFiles('godot-bin/godot.*') == '' | ||
| uses: dawidd6/action-download-artifact@v6 | ||
| with: | ||
| workflow: runner.yml | ||
| workflow_conclusion: success | ||
| name: linux-editor-mono | ||
| path: godot-bin | ||
| search_artifacts: true | ||
|
|
||
| - name: Setup Godot | ||
| run: | | ||
| ls -la godot-bin/ || echo "No godot-bin directory" | ||
| chmod +x godot-bin/godot.* || true | ||
|
|
||
| # Find the godot binary | ||
| GODOT_BIN=$(find godot-bin -name 'godot.*' -type f | head -1) | ||
| if [ -z "$GODOT_BIN" ]; then | ||
| echo "No Godot binary found, skipping tests" | ||
| exit 0 | ||
| fi | ||
|
|
||
| sudo mv "$GODOT_BIN" /usr/local/bin/godot | ||
| godot --version | ||
|
|
||
| - name: Install display dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y xvfb | ||
|
|
||
| - name: Checkout PlayGodot | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: Randroids-Dojo/PlayGodot | ||
| path: playgodot | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
| - name: Install PlayGodot | ||
| run: | | ||
| cd playgodot/python | ||
| pip install -e ".[dev]" | ||
|
|
||
| - name: Run unit tests | ||
| run: | | ||
| cd playgodot/python | ||
| pytest tests/ -v --tb=short | ||
|
|
||
| - name: Run tic-tac-toe integration tests | ||
| run: | | ||
| cd playgodot/examples/tic-tac-toe | ||
| # Run with xvfb for headless display | ||
| xvfb-run -a pytest tests/ -v --tb=short | ||
| env: | ||
| GODOT_PATH: /usr/local/bin/godot | ||
|
|
||
| - name: Test results summary | ||
| if: always() | ||
| run: | | ||
| echo "## PlayGodot Integration Test Results" >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| if [ "${{ job.status }}" == "success" ]; then | ||
| echo "✅ All integration tests passed!" >> $GITHUB_STEP_SUMMARY | ||
| else | ||
| echo "❌ Some tests failed. Check the logs above for details." >> $GITHUB_STEP_SUMMARY | ||
| fi | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow_run trigger is configured to listen for a workflow named "Build Godot Automation" (and the download step later refers to build-automation.yml), but this repository contains no workflow by that name (
rg "Build Godot Automation" .github/workflowsreturns none). As a result this job will never auto-trigger on automation builds and the artifact download will have nothing to fetch, so the PlayGodot integration tests will not run after the intended build pipeline.Useful? React with 👍 / 👎.