config uv in add service workflow
This commit is contained in:
@@ -5,6 +5,13 @@ on:
|
||||
branches:
|
||||
- 'feature/add-service-*'
|
||||
|
||||
env:
|
||||
UV_CACHE_DIR: /var/cache/uv
|
||||
UV_LINK_MODE: hardlink
|
||||
|
||||
# TODO: put this somewhere
|
||||
# uv cache prune --max-bytes 12G
|
||||
#
|
||||
# TODO: when to deploy to prod? Manual (i.e. cli command)?
|
||||
jobs:
|
||||
deploy:
|
||||
@@ -14,18 +21,10 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install and setup uv
|
||||
uses: actions/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||
with:
|
||||
version: "latest"
|
||||
enable-cache: true # Speeds up runs by caching python dependencies # TODO: does this work?
|
||||
|
||||
- name: Install Python 3.10
|
||||
run: uv python install 3.10
|
||||
|
||||
- name: Run tests
|
||||
- name: Run cli tests
|
||||
run: |
|
||||
cd cli && uv run pytest
|
||||
echo $UV_CACHE_DIR
|
||||
uv run --directory cli pytest -v
|
||||
|
||||
- name: Parse Service Directory Name
|
||||
id: parse_branch
|
||||
|
||||
Reference in New Issue
Block a user