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 if: github.ref != 'refs/heads/master' run: pytest --ignore=tests/003_test_integration.py - name: Run tests (master — full suite) if: github.ref == 'refs/heads/master' run: pytest env: SEED: ${{ secrets.SEED }} API_KEY: ${{ secrets.API_KEY }}