aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSondre Lillebø Gundersen <sondrelg@live.no>2021-08-31 12:08:48 +0300
committerGitHub <noreply@github.com>2021-08-31 11:08:48 +0200
commit829eb415207c1eee3856cb80ae33e6d2913697d7 (patch)
tree24181548bca279f29be1103061a3291196994515 /.github
parentf530b8cde47c862b566951ffc2ae562e247619aa (diff)
downloadtyping-829eb415207c1eee3856cb80ae33e6d2913697d7.tar.gz
Add caching to the GHA workflow (#880)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-docs.yml2
-rw-r--r--.github/workflows/ci.yml20
2 files changed, 19 insertions, 3 deletions
diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
index 806f833..43711d0 100644
--- a/.github/workflows/build-docs.yml
+++ b/.github/workflows/build-docs.yml
@@ -20,7 +20,7 @@ jobs:
python-version: 3.9
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
+ pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build the documentation
run: make -C docs html
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e09f89d..d3a866c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,9 +27,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
+ - name: Load pip cache
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
+ pip install --upgrade pip
pip install -r test-requirements.txt
- name: Run tests
@@ -56,9 +64,17 @@ jobs:
with:
python-version: 3.9
+ - name: Load pip cache
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
+ pip install --upgrade pip
pip install -r test-requirements.txt
- name: Lint implementation