mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-15 05:17:54 +00:00
99c611557e
These seem to be very large caches. Restoring an old one and updating it results in a cache larger than the maximum allowed cache size: 200MB. "Cache size of 254757924 bytes is over the 200MB limit, not saving cache." So if the config changes it is best to just take the cache-miss and start from scratch.
41 lines
1,011 B
YAML
41 lines
1,011 B
YAML
---
|
|
name: build
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
|
|
- name: Cache pre-commit hooks
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pre-commit
|
|
key: "${{ runner.os }}-pre-commit-\
|
|
${{ hashFiles('**/.pre-commit-config.yaml') }}"
|
|
|
|
- name: Cache pip test requirements
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: "${{ runner.os }}-pip-test-\
|
|
${{ hashFiles('**/requirements-test.txt') }}"
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-test-
|
|
${{ runner.os }}-pip-
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --upgrade -r requirements-test.txt
|
|
|
|
- name: Run pre-commit on all files
|
|
run: pre-commit run --all-files
|