specify cache matrix (#1725)
This commit is contained in:
parent
595ec65796
commit
281a73ccf7
|
@ -71,9 +71,9 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
path: ${{ steps.pip-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-extra.txt') }}
|
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-extra.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.python-version }}-pip-
|
${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}-pip-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -99,14 +99,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# tox --sitepackages
|
# tox --sitepackages
|
||||||
# flake8 .
|
# flake8 .
|
||||||
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests -v --doctest-modules --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
|
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests -v --doctest-modules --junitxml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
- name: Upload pytest test results
|
- name: Upload pytest test results
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}
|
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
|
||||||
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
|
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
|
||||||
# Use always() to always run this step to publish test results when there are test failures
|
# Use always() to always run this step to publish test results when there are test failures
|
||||||
if: always()
|
if: always()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue