From 1b7ab3c82673da89ad1e831773d64cb4a21ed7c0 Mon Sep 17 00:00:00 2001 From: Jakub Boukal Date: Thu, 5 Dec 2024 00:34:09 +0100 Subject: [PATCH] WIP: Test improve caching --- .github/workflows/make-messages.yml | 10 +++++----- .github/workflows/unit-tests.yml | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/make-messages.yml b/.github/workflows/make-messages.yml index 6aea201..8f5db5b 100644 --- a/.github/workflows/make-messages.yml +++ b/.github/workflows/make-messages.yml @@ -10,19 +10,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python + - name: Install APT Dependencies + run: sudo apt-get install gettext + + - name: Install Python Dependencies uses: actions/setup-python@v5 with: python-version: '3.12' cache: "pip" + cache-dependency-path: 'requirements*.txt' - - name: Install Dependencies run: | - python -m venv venv - source venv/bin/activate python -m pip install --upgrade pip pip install -r requirements.txt - sudo apt-get install gettext - name: Make messages cs run: | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3bad09f..6a29dc3 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -38,11 +38,10 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: "pip" + cache-dependency-path: 'requirements*.txt' - name: Install Dependencies run: | - python -m venv venv - source venv/bin/activate python -m pip install --upgrade pip pip install -r requirements-dev.txt