diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 60d20bfb1..677c341f5 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -20,6 +20,18 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.7.10' # using SemVer's version range syntax + architecture: 'x64' + + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install Python Packages working-directory: ${{ env.working-directory }} run: | diff --git a/.github/workflows/test-frontend.yml b/.github/workflows/test-frontend.yml index 225c54630..8ebe9aacc 100644 --- a/.github/workflows/test-frontend.yml +++ b/.github/workflows/test-frontend.yml @@ -31,9 +31,9 @@ jobs: path: | ./frontend/node_modules ./frontend/public - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}- + ${{ runner.os }}-yarn- - name: Install Node packages if: steps.cache-yarn.outputs.cache-hit != 'true' diff --git a/backend/.flake8 b/backend/.flake8 index 0fc03185c..9fff66301 100644 --- a/backend/.flake8 +++ b/backend/.flake8 @@ -2,8 +2,9 @@ exclude = xss_filter.py, */migrations/, - *settings.py - */apps.py + *settings.py, + */apps.py, + .venv/, venv/ max-line-length = 180 inline-quotes = "