From 9b0c29bade5ab0c93f9caea52209c1b5f0d70d30 Mon Sep 17 00:00:00 2001 From: zwitschi Date: Fri, 24 Oct 2025 19:53:03 +0200 Subject: [PATCH] refactor: Simplify caching steps in CI workflow and remove redundant cache for test dependencies --- .gitea/workflows/test.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index e8f3d6a..1076056 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -12,24 +12,17 @@ jobs: with: python-version: "3.10" - name: Cache pip - uses: actions/cache@v4 + uses: https://github.com/actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- - ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - - name: Cache pip test dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-test-${{ hashFiles('requirements-test.txt') }} - restore-keys: | - ${{ runner.os }}-pip-test- - ${{ runner.os }}-pip-test-${{ hashFiles('requirements-test.txt') }} - name: Install dependencies run: | pip install -r requirements.txt pip install -r requirements-test.txt - name: Run tests + env: + DATABASE_URL: sqlite:///./test_calminer.db run: pytest