Skip to content

Commit

Permalink
🚧 Test uv in
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajiih committed Dec 7, 2024
1 parent b713474 commit 466f233
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 6 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/code-embedder_uv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: πŸͺ„ Code Embedder uv

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
# with:
# ref: ${{ github.event.pull_request.head.ref }}

- name: 🐍 Install uv with caching
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "0.5.4"

- 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') }}

- name: πŸ“₯ Install the project
run: |
uv sync --all-extras --dev
uv pip install .
- 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 }}
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,3 @@ docstring-code-format = true
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]

[tool.poetry]
name = ""
version = "0.0.1" # Looks like to be necessary
description = ""
authors = [" <>"]

0 comments on commit 466f233

Please sign in to comment.