Skip to content

Commit

Permalink
Merge pull request #268 from beer-garden/cache-testing-files
Browse files Browse the repository at this point in the history
Adding Caching for PR Actions
  • Loading branch information
TheBurchLog authored Dec 9, 2020
2 parents eb7ffaf + 993809c commit 9e5e2b6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Need to update if we support other OS's
- name: Cache PIP Install
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-lint
- name: Run Linting
run: |
pip install black flake8
Expand Down Expand Up @@ -48,6 +57,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Need to update if we support other OS's
- name: Cache PIP Install
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-install-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-install
- name: Make Deps
run: make deps

Expand Down Expand Up @@ -79,6 +97,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Need to update if we support other OS's
- name: Cache PIP Install
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-coverage
- name: Make Deps
run: |
make deps
Expand Down

0 comments on commit 9e5e2b6

Please sign in to comment.