Skip to content

Commit

Permalink
ci: bump actions/setup-python from v1 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Apr 30, 2020
1 parent f0119cc commit ea79ebe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,27 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- run: python3 -m pip install --upgrade pip

- 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: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- run: python3 -m pip install pipenv
- run: pipenv sync --dev
- run: pipenv run mkdocs build --config-file ./mkdocs-sample.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'

- name: Upgrade pip
run: |
python3 -m pip -V
python3 -m pip install --upgrade pip
python3 -V
python3 -m pip -V
Expand Down

0 comments on commit ea79ebe

Please sign in to comment.