Repository navigation
Probar página #12
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: Probar página | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| browser: | |
| description: 'Browser to run tests' | |
| required: true | |
| default: chrome | |
| type: choice | |
| options: | |
| - firefox | |
| - chrome | |
| env: | |
| TEST_BROWSER: ${{ github.event.inputs.browser }} | |
| TEST_COMMAND_EXECUTOR: http://localhost:4444/wd/hub | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| services: | |
| selenium: | |
| image: selenium/standalone-${{ github.event.inputs.browser }} | |
| options: --shm-size=2gb | |
| ports: | |
| - 4444:4444 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Instalar dependencias | |
| run: uv sync | |
| - run: uv run python -m pytest | |
| - uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: screenshots | |
| path: screenshots/ |