From dae1fc66a626d7c9895c1a275478b6d8794642fc Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Tue, 25 Jun 2024 11:23:16 +0200 Subject: [PATCH] optimize quality --- .github/workflows/quality.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 5b2763f..ce2b2f9 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -23,8 +23,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - cache: 'pip' - cache-key: ${{ runner.os }}-pip-${{ hashFiles('./backend/requirements.txt', './backend/dev-requirements.txt') }} + python-version-file: ./backend/.python-version + cache: 'pip' + cache-dependency-path: | + ./backend/requirements.txt + ./backend/dev-requirements.txt - name: Install flake8 working-directory: ./backend @@ -43,8 +46,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - cache: 'pip' - cache-key: ${{ runner.os }}-pip-${{ hashFiles('./backend/requirements.txt', './backend/dev-requirements.txt') }} + python-version-file: ./backend/.python-version + cache: 'pip' + cache-dependency-path: | + ./backend/requirements.txt + ./backend/dev-requirements.txt - name: Install isort working-directory: ./backend @@ -63,8 +69,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - cache: 'pip' - cache-key: ${{ runner.os }}-pip-${{ hashFiles('./backend/requirements.txt', './backend/dev-requirements.txt') }} + python-version-file: ./backend/.python-version + cache: 'pip' + cache-dependency-path: | + ./backend/requirements.txt + ./backend/dev-requirements.txt - name: Install black working-directory: ./backend