Cache python dependencies on CI

This commit is contained in:
Bruno Alla 2021-11-24 16:12:24 +00:00
parent 315ead02e4
commit 9255ffc14e

View File

@ -20,6 +20,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
cache: pip
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install -U pip python -m pip install -U pip
@ -48,6 +49,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
cache: pip
- name: Docker ${{ matrix.script.name }} - name: Docker ${{ matrix.script.name }}
run: sh tests/test_docker.sh ${{ matrix.script.args }} run: sh tests/test_docker.sh ${{ matrix.script.args }}
@ -85,6 +87,8 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: "3.9" python-version: "3.9"
cache: pip
cache-dependency-path: '**/requirements*.txt'
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"