Use v2 actions

This commit is contained in:
Hugo van Kemenade 2020-06-30 22:01:19 +03:00
parent ed942911a8
commit a08588250b
3 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ jobs:
lint-pip- lint-pip-
- name: pre-commit cache - name: pre-commit cache
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cache/pre-commit path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
@ -32,7 +32,7 @@ jobs:
lint-pre-commit- lint-pre-commit-
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}

View File

@ -36,7 +36,7 @@ jobs:
path: winbuild\depends path: winbuild\depends
- name: Cache pip - name: Cache pip
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~\AppData\Local\pip\Cache path: ~\AppData\Local\pip\Cache
key: key:
@ -47,7 +47,7 @@ jobs:
# sets env: pythonLocation # sets env: pythonLocation
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }} architecture: ${{ matrix.architecture }}
@ -128,7 +128,7 @@ jobs:
shell: pwsh shell: pwsh
- name: Upload errors - name: Upload errors
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v2
if: failure() if: failure()
with: with:
name: errors name: errors

View File

@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Ubuntu cache - name: Ubuntu cache
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
with: with:
path: ~/.cache/pip path: ~/.cache/pip
@ -47,7 +47,7 @@ jobs:
${{ matrix.os }}-${{ matrix.python-version }}- ${{ matrix.os }}-${{ matrix.python-version }}-
- name: macOS cache - name: macOS cache
uses: actions/cache@v1 uses: actions/cache@v2
if: startsWith(matrix.os, 'macOS') if: startsWith(matrix.os, 'macOS')
with: with:
path: ~/Library/Caches/pip path: ~/Library/Caches/pip
@ -57,7 +57,7 @@ jobs:
${{ matrix.os }}-${{ matrix.python-version }}- ${{ matrix.os }}-${{ matrix.python-version }}-
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -89,7 +89,7 @@ jobs:
shell: pwsh shell: pwsh
- name: Upload errors - name: Upload errors
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v2
if: failure() if: failure()
with: with:
name: errors name: errors