diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b07fc3e..6a60383 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,14 @@ jobs: run: | echo "poetry_hash=$(md5sum poetry.lock | cut -c -32)" >> $GITHUB_OUTPUT - run: echo "${{ steps.hash.outputs.poetry_hash }}" + - name: Cache poetry + uses: https://github.com/actions/cache@v3 # Action cache + with: # specify with your GOMODCACHE and GOCACHE + path: |- + /root/.cache/pypoetry/virtualenvs + key: poetry_cache-${{ steps.hash.outputs.poetry_hash }} + restore-keys: |- + poetry_cache-${{ steps.hash.outputs.poetry_hash }} - run: poetry install --verbose # test2: