From 0d47d6194602765183bd70551c7129ea2976e363 Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 3 May 2026 18:17:46 +0200 Subject: [PATCH] initial commit --- README.md | 19 +++++++++++++++++++ action.yml | 14 ++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 README.md create mode 100644 action.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..a14d29e --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Set up UV + +## Sample CI + +```yaml +name: Lint CI +on: [ push ] + +jobs: + ty: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + - name: Set up UV + uses: actions/setup-uv@v1 + - name: Run ty check + run: python3 -m uv run ty check --output-format github +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..d8bfa68 --- /dev/null +++ b/action.yml @@ -0,0 +1,14 @@ +name: "Set up UV" +description: "Install uv and sync dependencies" + +runs: + using: "composite" + steps: + - name: Pip install uv + shell: bash + run: python3 -m pip install uv --break-system-packages + + - name: Sync dependencies + shell: bash + run: | + [ ! -f uv.lock ] || uv sync