initial commit
This commit is contained in:
@@ -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
|
||||
```
|
||||
+14
@@ -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
|
||||
Reference in New Issue
Block a user