mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-01-12 06:14:16 +00:00
docs: Enhance Python workflow example (#261)
4e1362e350
ccf9619480
https://github.com/actions/cache/pull/285
This commit is contained in:
parent
91e6658ef0
commit
e4462d9bb6
13
README.md
13
README.md
@ -787,18 +787,23 @@ jobs:
|
|||||||
python-version: '3.6'
|
python-version: '3.6'
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
|
|
||||||
|
- name: Upgrade pip
|
||||||
|
run: python3 -m pip install --upgrade pip
|
||||||
|
|
||||||
|
- name: Get pip cache dir
|
||||||
|
id: pip-cache
|
||||||
|
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python3 -m pip install -r ./requirements.txt
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -r ./requirements.txt
|
|
||||||
|
|
||||||
- run: mkdocs build
|
- run: mkdocs build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user