zona/.forgejo/workflows/test.yml
Daniel Fichtinger 7d77fd02e0
Some checks failed
/ test-build (push) Successful in 12s
/ test-uv-action (push) Has been cancelled
test for ci cache
2025-07-16 00:35:30 -04:00

26 lines
815 B
YAML

on: [push]
jobs:
test-build:
runs-on: based-alpine
steps:
- name: checkout source
uses: actions/checkout@v4
- name: Get uv cache dir
id: uv-cache
shell: bash
run: |
echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT
- run: |
apk add --no-cache tar zstd
- name: Restore uv cache
uses: actions/cache@v4
with:
path: ${{ steps.uv-cache.outputs.dir }}
key: ${{ runner.os }}-uv-${{ hashFiles('**/*requirements*.txt', '**/*requirements*.in', '**/*constraints*.txt', '**/*constraints*.in', '**/pyproject.toml', '**/uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-
# - name: sync and build
# run: |
# uv sync
# uv build
# uv run zona --help