summaryrefslogtreecommitdiff
path: root/.github/workflows/style.yaml
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2021-05-11 14:54:57 +0300
committerSergey Shepelev <temotor@gmail.com>2021-05-13 19:27:43 +0300
commitf4d476b8116d8e483155511dd7f5f737e3f2b282 (patch)
treee39a51ea733ba51616be741c00e7fbad25daeed0 /.github/workflows/style.yaml
parent3dac80836df5ed372385fecdf42be093741b19b8 (diff)
downloadeventlet-f4d476b8116d8e483155511dd7f5f737e3f2b282.tar.gz
ci: cache pip/tox; faster tox with `skipdist` and `usedevelop`
Diffstat (limited to '.github/workflows/style.yaml')
-rw-r--r--.github/workflows/style.yaml21
1 files changed, 20 insertions, 1 deletions
diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml
index 43e1fee..d3955f7 100644
--- a/.github/workflows/style.yaml
+++ b/.github/workflows/style.yaml
@@ -10,7 +10,26 @@ jobs:
timeout-minutes: 5
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
+
+ - name: cache pip
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/style.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+ ${{ runner.os }}-
+ - name: cache tox
+ uses: actions/cache@v2
+ with:
+ path: .tox
+ key: ${{ runner.os }}-tox-style-${{ hashFiles('tox.ini') }}
+ restore-keys: |
+ ${{ runner.os }}-tox-style-
+ ${{ runner.os }}-tox-
+ ${{ runner.os }}-
+
- name: setup python
uses: actions/setup-python@v2
with: