(pronounced: "pik-shun")
Run Python scripts with uv inside a slim, fast Docker container based on Python 3.13. Uses the @CivicActions' Pyction image.
uv sync is handled by the action, so you just need your run or other commands
🔐 Required Step: Checkout Your Code
Before using Pyction, you must check out your repository so it's available inside the container:
- uses: actions/checkout@v4
- name: Run Python Script in pyction
uses: civicactions/pyction@v1
with:
script: |
uv run your_script.py
uv run -m your_thing- Based on
ghcr.io/civicactions/pyction - Runs inside Docker with full repo access
uvpreinstalled- Your
pyproject.tomlis automatically respected
| Name | Required | Description |
|---|---|---|
| script | ✅ | Shell script to execute inside pyction |
- name: Update fingerprints
uses: civicactions/pyction@v1
with:
script: |
uv sync
uv run scripts/fetch_fingerprints.py@CivicActions
We are aggressively open source and use AGPL-3.0-or-later · ©️ 2025 CivicActions