Merge pull request #1624 from PyTorchLightning/tests/cache

resume GH action
This commit is contained in:
William Falcon
2020-04-27 07:46:35 -04:00
committed by GitHub
+6 -7
View File
@@ -1,6 +1,6 @@
name: CI testing
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
@@ -63,12 +63,12 @@ jobs:
# Note: This uses an internal pip API and may not always work
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
- name: Get pip cache
id: pip-cache
run: |
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
id: pip-cache
run: |
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
- name: Cache pip
- uses: actions/cache@v1
uses: actions/cache@v1
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-extra.txt') }}
@@ -116,7 +116,6 @@ jobs:
python setup.py check --metadata --strict
python setup.py sdist
twine check dist/*
#- name: Try install package
# if: ! startsWith(matrix.os, 'windows')
# run: |
@@ -127,4 +126,4 @@ jobs:
- name: Statistics
if: success()
run: |
coverage report
coverage report