fix(deps): update all dependencies #407
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
| name: Pre merge test | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '**/*.py' | |
| - '**/*.toml' | |
| - '**/*.lock' | |
| - '.github/workflows/devRun.yml' | |
| permissions: | |
| contents: write | |
| pages: write | |
| jobs: | |
| merge_test: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.56.1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Create venv & install dependencies | |
| run: | | |
| uv venv | |
| uv sync --all-extras --dev | |
| - name: Test with pytest | |
| run: xvfb-run .venv/bin/python -m pytest -m devRun --base-url ${{ vars.BASE_URL }} | |
| - name: Auto-assign reviewers | |
| uses: kentaro-m/[email protected] | |
| if: success() | |
| - name: Store Playwright Traces and Videos From Failed Tests | |
| if: failure() | |
| uses: actions/[email protected] | |
| id: artifact-upload-step | |
| with: | |
| name: test-results | |
| path: test-results/ | |
| retention-days: 7 | |
| - name: Link Playwright Traces And Videos To Allure Report | |
| working-directory: allure-results | |
| if: failure() | |
| run: echo ARTIFACT_URL=${{ steps.artifact-upload-step.outputs.artifact-url }} >> environment.properties | |
| - name: Link Git Information And Browser Version To Allure Report | |
| working-directory: allure-results | |
| if: always() | |
| 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) | |
| } >> environment.properties | |
| - name: Generate Allure Report | |
| uses: simple-elf/[email protected] | |
| if: always() | |
| id: allure-report | |
| with: | |
| allure_results: allure-results | |
| allure_report: allure-report | |
| gh_pages: gh-pages | |
| allure_history: allure-history | |
| - name: Deploy Report To Github Pages | |
| if: always() | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: allure-history |