Skip to content

Commit

Permalink
Cache pip packages in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak committed Jun 27, 2021
1 parent 7f0eed1 commit cd4803e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 3 additions & 2 deletions backend/.flake8
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "
Expand Down

0 comments on commit cd4803e

Please sign in to comment.