A community-maintained Python framework for creating mathematical animations.
CI: Use poetry's cache dir rather than pip (#1166)
Naveen M Kaea9e094cb65
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e457f719b..d81971b3a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -32,19 +32,6 @@ jobs:pip install wheelcurl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python- - name: Get pip cache dir- shell: bash- id: pip-cache-and-time- run: |- echo "::set-output name=dir::$(pip cache dir)"- echo "::set-output name=date::$(/bin/date -u "+%m%Y")"-- - name: pip cache- uses: actions/cache@v2- with:- path: ${{ steps.pip-cache-and-time.outputs.dir }}- key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ matrix.python }}-${{ steps.pip-cache-and-time.outputs.date }}-- name: Install system dependencies (Linux)if: runner.os == 'Linux'run: |@@ -68,6 +55,20 @@ jobs:echo "/Library/TeX/texbin" >> $GITHUB_PATHecho "$HOME/.poetry/bin" >> $GITHUB_PATH+ - name: Get Poetry Cache Dir+ shell: bash+ id: pip-cache-and-time+ run: |+ export PATH="$HOME/.poetry/bin:$PATH"+ echo "::set-output name=dir::$(poetry config cache-dir)"+ echo "::set-output name=date::$(/bin/date -u "+%m%Y")"++ - name: pip cache+ uses: actions/cache@v2+ with:+ path: ${{ steps.pip-cache-and-time.outputs.dir }}+ key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}-${{ matrix.python }}+- name: Cache Windowsid: cache-windowsif: runner.os == 'Windows'