From 40e4e428afac58d3e6d9dc5f5b2ec39e174304e3 Mon Sep 17 00:00:00 2001 From: aouinizied Date: Wed, 6 May 2020 05:14:24 +0200 Subject: [PATCH] Move to pip API. --- .github/workflows/build_and_publish.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 8698e1c..3b1b9f6 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -29,18 +29,16 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v1 - if: startsWith(runner.os, 'Linux') - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Get pip cache dir + id: pip-cache + run: | + python -m pip install --upgrade pip setuptools wheel + echo "::set-output name=dir::$(pip cache dir)" - - uses: actions/cache@v1 - if: startsWith(runner.os, 'macOS') + - name: Pip cache + uses: actions/cache@v1 with: - path: ~/Library/Caches/pip + path: ${{ steps.pip-cache.outputs.dir }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-pip- @@ -57,7 +55,6 @@ jobs: brew install autoconf automake libtool pkg-config - name: Installing package dependencies run: | - python -m pip install --upgrade pip setuptools wheel pip install wheel twine setuptools codecov pip install -r requirements.txt python setup.py bdist_wheel