Skip to content

docs: Fix mobile PageSpeed docs issues #914

docs: Fix mobile PageSpeed docs issues

docs: Fix mobile PageSpeed docs issues #914

Workflow file for this run

name: Pytest/Test Workflow
on:
pull_request:
branches: ['release/*', 'develop']
jobs:
run-tests:
name: Import Test and Pytest Run
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 🐍 Install uv and set Python version ${{ matrix.python-version }}
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
# TODO(https://github.com/astral-sh/setup-uv/issues/226): Remove this.
prune-cache: ${{ matrix.os != 'windows-latest' }}
- name: 🚀 Install Packages
run: uv sync --frozen --group dev
- name: 🧪 Run the Import test
run: uv run python -c "import trackers"
- name: 🧪 Run the Test
shell: bash
run: |
if [ -d tests ] && [ "$(find tests -type f \( -name 'test_*.py' -o -name '*_test.py' \) | wc -l)" -gt 0 ]; then
uv run pytest -m "not integration"
else
echo "No tests found. Skipping pytest."
fi