name: Tests on: push: branches: ["**"] pull_request: branches: ["**"] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: "3.12" cache: "pip" - name: Install dependencies run: pip install -r requirements.txt pytest pytest-asyncio - name: Write cookies.json if: ${{ env.COOKIES_JSON != '' }} run: echo "$COOKIES_JSON" > cookies.json env: COOKIES_JSON: ${{ secrets.COOKIES_JSON }} - name: Run tests run: pytest