diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..75e1ae2 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,25 @@ +on: [push] +jobs: + test-build: + runs-on: based-alpine + steps: + - run: | + apk add --no-cache tar zstd + - 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 + - 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