Skip to content

Commit

Permalink
👷 Add caching to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 6, 2021
1 parent e7e60a5 commit 9852ef9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ jobs:

steps:

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Select Python 3.7
uses: actions/setup-python@v1
with:
Expand All @@ -121,7 +135,7 @@ jobs:
platformio update
- name: Check out the PR
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Run ${{ matrix.test-platform }} Tests
run: |
Expand Down

0 comments on commit 9852ef9

Please sign in to comment.