From 3b9b97fb41eeaa3c216031737be075fff4ce957a Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Fri, 3 May 2024 07:13:44 +0200 Subject: [PATCH] Workflow: remove redundant Python caching --- .../{test-python-app.yml => check.yml} | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) rename .github/workflows/{test-python-app.yml => check.yml} (70%) diff --git a/.github/workflows/test-python-app.yml b/.github/workflows/check.yml similarity index 70% rename from .github/workflows/test-python-app.yml rename to .github/workflows/check.yml index 71d2cdd..7cbf8a2 100644 --- a/.github/workflows/test-python-app.yml +++ b/.github/workflows/check.yml @@ -15,34 +15,28 @@ jobs: runs-on: ubuntu-latest steps: - - name: checkout repository + - name: Check out repository uses: actions/checkout@v4 with: persist-credentials: false fetch-depth: 1 # 0 if you want to push to repo - - name: python set up + - name: Python set up uses: actions/setup-python@v5 with: python-version: "3.12" cache: "pip" - - name: python cache set up - uses: actions/cache@v4 - with: - path: ${{ env.pythonLocation }} - key: ${{ env.pythonLocation }}-py-cache + - name: Run pre-commit hooks + uses: pre-commit/action@v3.0.1 - - name: install dependencies + - name: Install dependencies run: | python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: run pre-commit hooks - uses: pre-commit/action@v3.0.1 - - - name: run pytest + - name: Install and run pytest run: | - pip install pytest cp src/rememberthemilk.toml.example src/rememberthemilk.toml + pip install pytest pytest