From 542302f587abbac34311ff2c774bcbea871bfa5f Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Tue, 8 Dec 2020 11:39:13 -0500 Subject: [PATCH 1/3] Adding Caching for PR Actions --- .github/workflows/pr-actions.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 9c249868..c509de9b 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -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 }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip-lint + - name: Run Linting run: | pip install black flake8 @@ -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 }}-pip-install-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip-install + - name: Make Deps run: make deps @@ -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 }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip-coverage + - name: Make Deps run: | make deps From cfbb4c62d1931b1a04cd9f11f8c60b353a8fc4ad Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Tue, 8 Dec 2020 11:42:52 -0500 Subject: [PATCH 2/3] Fixing Tabs --- .github/workflows/pr-actions.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index c509de9b..3160caf0 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -20,12 +20,12 @@ jobs: # Need to update if we support other OS's - name: Cache PIP Install - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip-lint + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip-lint - name: Run Linting run: | @@ -99,12 +99,12 @@ jobs: # Need to update if we support other OS's - name: Cache PIP Install - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip-coverage + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip-coverage - name: Make Deps run: | From 993809c972dca243fe0135500d7725849509e5ea Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Tue, 8 Dec 2020 11:44:59 -0500 Subject: [PATCH 3/3] Tagging Python Version in Key --- .github/workflows/pr-actions.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 3160caf0..20470072 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -23,9 +23,9 @@ jobs: uses: actions/cache@v2 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-pip-lint-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} restore-keys: | - ${{ runner.os }}-pip-lint + ${{ runner.os }}-${{ matrix.python-version }}-pip-lint - name: Run Linting run: | @@ -62,9 +62,9 @@ jobs: uses: actions/cache@v2 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-install-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-pip-install-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} restore-keys: | - ${{ runner.os }}-pip-install + ${{ runner.os }}-${{ matrix.python-version }}-pip-install - name: Make Deps run: make deps @@ -102,9 +102,9 @@ jobs: uses: actions/cache@v2 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} + key: ${{ runner.os }}-${{ matrix.python-version }}-pip-coverage-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} restore-keys: | - ${{ runner.os }}-pip-coverage + ${{ runner.os }}-${{ matrix.python-version }}-pip-coverage - name: Make Deps run: |