Skip to content

Commit

Permalink
test workload
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Sep 28, 2023
1 parent 7d1b7b6 commit a7c67fe
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cleanup_pip_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Cleanup PIP caches
on:
pull_request:
paths-ignore:
- '**/docs/**'
- 'docs/**'
- '**/**.md'
- '**.md'
- '**/layer_tests_summary/**'
- '**/conformance/**'

jobs:
Cleanup_PIP_Caches:
runs-on: aks-linux-2-cores
container:
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
volumes:
- /mount/caches:/mount/caches
env:
PIP_CACHE_PATH: /mount/caches/pip

steps:
- name: Pre-Collecting Cache Info
run: |
echo "Cache info: "
du -h -d2 ${PIP_CACHE_PATH}
- name: Cleanup cache
run: |
echo "Delete cache files if they have not been used in over 30 days"
[ ! -z "${PIP_CACHE_PATH}" ] && find ${PIP_CACHE_PATH} ! -type d -mtime +30 -delete
- name: Post-Collecting Cache Info
run: |
echo "Cache info: "
du -h -d2 ${PIP_CACHE_PATH}

0 comments on commit a7c67fe

Please sign in to comment.