Skip to content

docs: update api data fetching example with resource() usage #187

docs: update api data fetching example with resource() usage

docs: update api data fetching example with resource() usage #187

Workflow file for this run

name: CI
on:
push:
branches: [ "**" ] # Trigger on pushes to all branches
pull_request:
branches: [ "**" ] # Also trigger on pull requests to all branches
permissions:
contents: read
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
# Test against the minimum supported Python version and the latest stable version
python-version: ['3.9', '3.12']
steps:
- uses: actions/checkout@v4
- name: astral-sh/setup-uv
uses: astral-sh/setup-uv@v5.3.1
with:
python-version: 3.9
- name: Run Ruff linting
run: |
uvx ruff check
- name: Run Pyright
run: |
uv run pyright src/
- name: Run tests
run: |
uv run pytest tests/
- name: Build package
run: |
uv build
- name: Test clean install (catch undeclared dependencies)
run: |
uv venv .test-venv --python 3.9
uv pip install --python .test-venv/bin/python dist/*.whl
.test-venv/bin/python -c "import reaktiv"
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5.3.1
with:
python-version: "3.12"
- name: Test interactive examples
run: uv run --group docs python docs/check_examples.py
- name: Build documentation
run: uv run --group docs mkdocs build --strict