Skip to content

📝 Update project description #30

📝 Update project description

📝 Update project description #30

name: 🪄 Code Embedder
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
code_embedder:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.12"
UV_SYSTEM_PYTHON: 1
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
- name: 🐍 Install uv with caching
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 💾 Setup pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('uv.lock') }}
# Manually add extras used in snippet
- name: 📥 Install the project
run: uv pip install ".[loguru]"
- name: 🪄 Format raw code snippets with ruff
run: |
pipx install ruff
ruff format dev/readme_snippets/
- name: 🪄 Format print comments in code snippets
run: python dev/scripts/format_snippet_prints.py
- name: 📝 Run code embedder
uses: kvankova/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}