diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f940a17 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - master + - dev + pull_request: + branches: + - master + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt pytest pytest-asyncio + playwright install --with-deps chromium + + - name: Run tests + run: pytest diff --git a/requirements.txt b/requirements.txt index c841a7d..e586a80 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,3 @@ playwright==1.48.0 +pytest==8.3.4 +pytest-asyncio==0.22.0