Skip to content

Commit

Permalink
Tries to add caching of requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
duckduckgrayduck authored Sep 20, 2023
1 parent 7a41090 commit 192744f
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/run-addon.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@

name: Run Add-On
on: repository_dispatch

jobs:
Run-Add-On:
uses: MuckRock/documentcloud-addon-workflows/.github/workflows/run-addon.yml@v1
with:
timeout: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Cache packages
uses: actions/cache@v2
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt

- name: Run Add-On
uses: MuckRock/documentcloud-addon-workflows/.github/workflows/run-addon.yml@v1
with:
timeout: 60

0 comments on commit 192744f

Please sign in to comment.