This commit is contained in:
parent
8ad8bad438
commit
537c8541a0
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/test.yml
Normal file
24
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test-build:
|
||||||
|
runs-on: based-alpine
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
apk add tar --upgrade
|
||||||
|
apk add zstd
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
uv sync
|
||||||
|
uv build
|
||||||
|
- name: Get uv cache dir
|
||||||
|
id: uv-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT
|
||||||
|
- name: 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-
|
Loading…
Add table
Add a link
Reference in a new issue