diff --git a/.github/workflows/python-continuous-integration.yml b/.github/workflows/python-continuous-integration.yml index 1eddd26355..553f9f410a 100644 --- a/.github/workflows/python-continuous-integration.yml +++ b/.github/workflows/python-continuous-integration.yml @@ -32,13 +32,12 @@ jobs: with: version: '3.19.4' repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Cache Python dependencies + - name: Set up Poetry cache for Python dependencies uses: actions/cache@v2 with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + path: ~/.cache/pypoetry + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + restore-keys: ${{ runner.os }}-poetry- - name: Install dependencies run: make install - name: Run build, style, and lint checks diff --git a/Makefile b/Makefile index b4a5939ed7..fcb028270c 100644 --- a/Makefile +++ b/Makefile @@ -140,6 +140,7 @@ test-notebooks: ## Run tests for the notebooks install: ## Install all dependencies with poetry. @$(call i, Installing dependencies) + $(source HOME/.poetry/env) poetry install coverage: ## Generate test coverage reports.