Merge branch 'fix-cache'
This commit is contained in:
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@@ -6,20 +6,19 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
env:
|
env:
|
||||||
CMAKE_VERSION: 3.14.7
|
CMAKE_VERSION: 3.14.7
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
|
||||||
python: [3.6, 3.7, 3.8]
|
python: [3.6, 3.7, 3.8]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Cache .tox
|
- name: Cache .venev
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: .tox
|
path: .venev
|
||||||
key: ${{ runner.OS }}-tox-${{ hashFiles('poetry.lock') }}
|
key: ${{ runner.OS }}-venv-${{ hashFiles('poetry.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-tox-
|
${{ runner.OS }}-venv-
|
||||||
- name: Set up Python ${{ matrix.python }}
|
- name: Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
@@ -32,4 +31,5 @@ jobs:
|
|||||||
- name: Test with tox
|
- name: Test with tox
|
||||||
run: |
|
run: |
|
||||||
export PATH=$GITHUB_WORKSPACE/cmake-$CMAKE_VERSION-Linux-x86_64/bin:$PATH
|
export PATH=$GITHUB_WORKSPACE/cmake-$CMAKE_VERSION-Linux-x86_64/bin:$PATH
|
||||||
|
poetry config settings.virtualenvs.in-project true
|
||||||
tox
|
tox
|
||||||
|
|||||||
Reference in New Issue
Block a user