[pre-commit.ci] auto fixes from pre-commit.com hooks #313
This file contains 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: testing | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: "1.5.1" | |
- name: Install dependencies | |
run: | | |
poetry install | |
python -m pip install tox tox-gh-actions pytest-playwright pytest-rerunfailures | |
- name: Install playwright dependencies | |
run: | | |
playwright install chromium --with-deps | |
- name: Test with tox | |
run: tox | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: screenshots | |
path: screenshot*.png |