Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/actions/setup-uv/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Setup uv
description: Setup uv for use in a workflow

inputs:
python-version:
description: Python version to use. Falls back to .python-version if omitted.
required: false

runs:
using: composite
steps:
- uses: astral-sh/setup-uv@v7
with:
version: "0.11.19"
enable-cache: true
python-version: ${{ inputs.python-version }}
Comment thread
Naramsim marked this conversation as resolved.
13 changes: 4 additions & 9 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.19"
enable-cache: true
- name: Setup uv
uses: ./.github/actions/setup-uv
- name: Generate OpenAPI schema
run: |
make install-base
Expand All @@ -42,11 +39,9 @@ jobs:
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Setup uv
uses: ./.github/actions/setup-uv
with:
version: "0.11.19"
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Start pokeapi
run: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ jobs:
run: |
docker compose cp db:/tmp/pokeapi.pgdump ./
ls -larth
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.19"
enable-cache: true
- name: Setup uv
uses: ./.github/actions/setup-uv
- name: Start pokeapi
run: |
rm -rf .venv
Expand Down
Loading