From 08525a4cb3ee7a3cf7838093a4a93f34e2f4ec20 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 15 Jul 2025 23:39:00 -0400 Subject: [PATCH] test for ci cache --- .forgejo/workflows/test.yml | 26 ++++++++++++++++++++++++++ .forgejo/workflows/uv.yml | 15 +++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .forgejo/workflows/test.yml create mode 100644 .forgejo/workflows/uv.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..ae31140 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,26 @@ +# 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 +# uv run zona --help diff --git a/.forgejo/workflows/uv.yml b/.forgejo/workflows/uv.yml new file mode 100644 index 0000000..e4d9701 --- /dev/null +++ b/.forgejo/workflows/uv.yml @@ -0,0 +1,15 @@ +on: [push] +jobs: + test-uv-action: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Install uv + id: setup-uv + uses: https://github.com/astral-sh/setup-uv@v6 + with: + enable-cache: true + - run: uv sync && uv build + - name: test cache restored + if: steps.setup-uv.outputs.cache-hit == 'true' + run: echo "Cache was restored!"