Skip to content

Commit

Permalink
Merge pull request #1437 from ZzEeKkAa/feature/add_cleanup
Browse files Browse the repository at this point in the history
Add clean up job
  • Loading branch information
oleksandr-pavlyk authored Oct 13, 2023
2 parents 6d681db + e1e2dba commit f486053
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,36 @@ jobs:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}

cleanup_packages:
name: Clean up anaconda packages
needs: [upload_linux, upload_windows]
runs-on: 'ubuntu-latest'
defaults:
run:
shell: bash -el {0}
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
run-post: false
channel-priority: "disabled"
channels: conda-forge
python-version: '3.11'

- name: Install anaconda-client
run: conda install anaconda-client

- name: Checkout repo
uses: actions/checkout@v2
with:
repository: IntelPython/devops-tools
fetch-depth: 0

- name: Cleanup old packages
run: |
python scripts/cleanup-old-packages.py \
--verbose --force --token ${{ secrets.ANACONDA_TOKEN }} \
--package dppy/${{ env.PACKAGE_NAME }} --label dev
test_examples_linux:
needs: build_linux
runs-on: ${{ matrix.runner }}
Expand Down

0 comments on commit f486053

Please sign in to comment.