Skip to content

Commit

Permalink
docs: Enhance Python workflow example (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Apr 30, 2020
1 parent 91e6658 commit e4462d9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,18 +787,23 @@ jobs:
python-version: '3.6'
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
uses: actions/cache@v1
with:
path: ~/.cache/pip
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ./requirements.txt
run: python3 -m pip install -r ./requirements.txt
- run: mkdocs build
Expand Down

0 comments on commit e4462d9

Please sign in to comment.