From 80be903afb04b3d8bac913e852859e82a9c397d8 Mon Sep 17 00:00:00 2001 From: Kolja Dummann Date: Tue, 8 Jun 2021 20:28:03 +0000 Subject: [PATCH] cache in gh actions --- .github/workflows/buildOnly.yml | 7 +++++++ .github/workflows/publishAndBuild.yml | 6 ++++++ .gitignore | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildOnly.yml b/.github/workflows/buildOnly.yml index 37ab813..03fbafe 100644 --- a/.github/workflows/buildOnly.yml +++ b/.github/workflows/buildOnly.yml @@ -11,6 +11,13 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.7 + + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publishAndBuild.yml b/.github/workflows/publishAndBuild.yml index 7204727..8804068 100644 --- a/.github/workflows/publishAndBuild.yml +++ b/.github/workflows/publishAndBuild.yml @@ -14,6 +14,12 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.7 + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.gitignore b/.gitignore index af8afbe..a798229 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store docs/index.md -site/ \ No newline at end of file +site/ +.venv/