Merge pull request #101 from RedHatQE/pre-commit-ci-update-config #408
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: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: ["opened", "synchronize", "reopened"] | |
| create: | |
| jobs: | |
| test: | |
| name: pf-${{ matrix.pf-version }} (🐍 ${{ matrix.python-version }}, ${{ matrix.browser }}) | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chrome, firefox] | |
| python-version: ["3.12", "3.13"] | |
| pf-version: ["v5", "v6"] | |
| steps: | |
| - name: Pull selenium-standalone | |
| run: podman pull selenium/standalone-${{ matrix.browser }}:latest | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install -U pip wheel | |
| pip install .[dev] | |
| - name: Test with pytest | |
| run: | | |
| pytest -v -n 3 --browser-name=${{ matrix.browser }} --pf-version=${{ matrix.pf-version }} --cov=./ --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: coverage.xml | |
| flags: unittests | |
| name: ${{ github.run_id }}-py-${{ matrix.python-version }}-${{ matrix.browser }} |