Skip to content

Tries to add caching of requirements.txt #19

Tries to add caching of requirements.txt

Tries to add caching of requirements.txt #19

Workflow file for this run

name: Run Add-On
on: repository_dispatch
jobs:
Run-Add-On:
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