Session / Local storage added / rework cookies/execute_script some me… #314
Workflow file for this run
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: Selenium Selenoid Tests | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'tests/static_tests/**' | |
| - 'README.md' | |
| - 'CHANGELOG.md' | |
| - 'LICENSE' | |
| - '.gitignore' | |
| pull_request: | |
| jobs: | |
| selenium-selenoid: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: [ "selenoid/chrome:128.0", "selenoid/firefox:125.0"] | |
| python-version: [ "3.8", "3.12" ] | |
| services: | |
| selenoid: | |
| image: ${{ matrix.image }} | |
| options: --privileged --memory=4g | |
| ports: | |
| - 4444:4444 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Environment | |
| id: setup | |
| uses: ./.github/actions/setup | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Extract Browser Name | |
| run: | | |
| browser_name=$(echo "${{ matrix.image }}" | sed -E 's|.*/([^:]+):.*|\1|') | |
| echo "BROWSER=${browser_name}" >> $GITHUB_ENV | |
| - name: Run Selenium ${{ env.BROWSER }} tests with py${{ matrix.python-version }} | |
| id: tests | |
| run: | | |
| uv run --no-config pytest tests/web_tests --platform selenium --driver ${{ env.BROWSER }} --env remote --headless -v --alluredir=allure-report --reruns=2 | |
| continue-on-error: true | |
| - name: Teardown (Allure Report and Error Handling) | |
| if: ${{ steps.tests.outcome == 'failure' }} | |
| uses: ./.github/actions/teardown | |
| with: | |
| browser-name: ${{ env.BROWSER }} | |
| engine: "selenium" |