Fix JavaScript event listener examples to use component scope #137
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] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| container: python:3.11 | |
| services: | |
| redis: | |
| image: redis | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| set -ex | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| $HOME/.local/bin/poetry install | |
| - name: Install playwright | |
| run: | | |
| set -ex | |
| $HOME/.local/bin/poetry run playwright install chromium --with-deps | |
| - name: Test with pytest | |
| env: | |
| REDIS_URL: redis://redis:6379/0 | |
| run: | | |
| set -ex | |
| $HOME/.local/bin/poetry run pytest |