Skip to content

Commit

Permalink
added cleanup workload
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Sep 27, 2023
1 parent 46605f0 commit 1110929
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cleanup_pip_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Cleanup PIP caches
on:
schedule:
# at 00:00 on the 1st day of every month
# - cron: '0 0 1 * *'
# Every 10 minutes (to test only)
- cron: '*/5 * * * *'

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

steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Pre-Collecting Cache Info
run: |
echo "Cache path: "
python3 -m pip cache dir
echo "Cache info: "
python3 -m pip cache info
- name: Cleanup cache
run: python3 -m pip cache purge

- name: Post-Collecting Cache Info
run: |
echo "Cache info: "
python3 -m pip cache info

0 comments on commit 1110929

Please sign in to comment.