Skip to content

Commit

Permalink
[CACHE] Time-to-live and better cache key (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
EIzharikov authored Apr 28, 2023
1 parent 4769f03 commit b1acbc7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
name: 'Setup environment'
description: 'Setup environment for HSE FIPL courses'

runs:
using: "composite"
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pipenv'
- name: Cache pip
uses: actions/cache@v3
id: cache
with:
path: |
./venv/
~/.local/bin/mystem
key: ${{ env.GITHUB_REPOSITORY }}-${{ env.BRANCH_NAME }}-pip-${{ hashFiles('**/requirements*.txt') }}
ttl: 1814400
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
bash config/venv_setup.sh

0 comments on commit b1acbc7

Please sign in to comment.