-
-
Notifications
You must be signed in to change notification settings - Fork 48
README.md #477
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
+103
−55
Merged
README.md #477
Changes from all commits
Commits
Show all changes
3 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 |
|---|---|---|
|
|
@@ -4,14 +4,17 @@ on: | |
| pull_request: | ||
| branches: [ main ] | ||
| paths: | ||
| - '**/*.py' | ||
| - '**/*.toml' | ||
| - '**/*.lock' | ||
| - '.github/workflows/devRun.yml' | ||
| - "**/*.py" | ||
| - "**/*.toml" | ||
| - "**/*.lock" | ||
| - ".github/workflows/devRun.yml" | ||
|
|
||
| permissions: | ||
| contents: write | ||
| contents: read | ||
| pull-requests: write | ||
| checks: write | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| merge_test: | ||
|
|
@@ -22,7 +25,7 @@ jobs: | |
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: '3.14' | ||
| python-version: "3.14" | ||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
|
|
@@ -39,31 +42,44 @@ jobs: | |
| - name: Auto-assign reviewers | ||
| uses: kentaro-m/auto-assign-action@v2.0.0 | ||
| if: success() | ||
| - name: Link Git Information And Browser Version To Allure Report | ||
| working-directory: allure-results | ||
| - name: Link Git Information And Browser Version To Allure Results | ||
| if: always() | ||
| working-directory: allure-results | ||
| run: | | ||
| { | ||
| echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
| echo GIT_BRANCH=${{ github.head_ref || github.ref_name }} | ||
| echo GIT_COMMIT_ID=${{ github.sha }} | ||
| echo GIT_COMMIT_MESSAGE=$(git show -s --format=%s HEAD) | ||
| echo GIT_COMMIT_AUTHOR_NAME=$(git show -s --format='%ae' HEAD) | ||
| echo GIT_COMMIT_TIME=$(git show -s --format=%ci HEAD) | ||
| echo CHROME_VERSION=$(google-chrome --product-version) | ||
| echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
| echo GIT_BRANCH=${{ github.head_ref || github.ref_name }} | ||
| echo GIT_COMMIT_ID=${{ github.sha }} | ||
|
Comment on lines
+50
to
+52
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid untrusted Line 51 interpolates 🔒 Proposed fix - name: Link Git Information And Browser Version To Allure Results
if: always()
working-directory: allure-results
+ env:
+ GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
run: |
{
echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- echo GIT_BRANCH=${{ github.head_ref || github.ref_name }}
+ echo "GIT_BRANCH=$GIT_BRANCH"
echo GIT_COMMIT_ID=${{ github.sha }}
echo GIT_COMMIT_MESSAGE="$(git show -s --format=%s HEAD)"🤖 Prompt for AI Agents |
||
| echo GIT_COMMIT_MESSAGE="$(git show -s --format=%s HEAD)" | ||
| echo GIT_COMMIT_AUTHOR_NAME="$(git show -s --format='%ae' HEAD)" | ||
| echo GIT_COMMIT_TIME="$(git show -s --format=%ci HEAD)" | ||
| echo CHROME_VERSION="$(google-chrome --product-version 2>/dev/null || true)" | ||
| } >> environment.properties | ||
| - name: Generate Allure Report | ||
| uses: simple-elf/allure-report-action@v1.13 | ||
| - name: Generate Allure HTML report (Allure 3 CLI via npx) | ||
| if: always() | ||
| run: npx -y allure generate allure-results --output allure-report | ||
| - name: Allure PR summary | ||
| if: always() | ||
| id: allure-report | ||
| uses: allure-framework/allure-action@v0.6.2 | ||
| with: | ||
| allure_results: allure-results | ||
| allure_report: allure-report | ||
| gh_pages: gh-pages | ||
| allure_history: allure-history | ||
| - name: Deploy Report To Github Pages | ||
| report-directory: "./allure-report" | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Upload Pages artifact | ||
| if: always() | ||
| uses: peaceiris/actions-gh-pages@v4 | ||
| uses: actions/upload-pages-artifact@v4 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: allure-history | ||
| path: allure-report | ||
| deploy_pages: | ||
| needs: merge_test | ||
| if: always() | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
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
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
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.
Prevent failures when
allure-resultsis missing.With
working-directory: allure-resultsandif: always(), this step fails if tests didn’t create the folder (e.g., early failure), which then blocks report generation/deploy. Consider creating the directory beforehand.🛠️ Suggested hardening
- name: Auto-assign reviewers uses: kentaro-m/auto-assign-action@v2.0.0 if: success() + - name: Ensure Allure results directory exists + if: always() + run: mkdir -p allure-results - name: Link Git Information And Browser Version To Allure Results if: always() working-directory: allure-results🤖 Prompt for AI Agents