conda\clean-old-version: add script metadata

`bash -l` seems to be part of `setup-micromambda`
This commit is contained in:
Andrej730
2026-09-15 11:18:14 +05:00
parent 69e49422a9
commit 8a5878886e
2 changed files with 10 additions and 10 deletions
@@ -18,20 +18,13 @@ env:
jobs: jobs:
activate: activate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
if: | if: |
github.repository == 'IfcOpenShell/IfcOpenShell' github.repository == 'IfcOpenShell/IfcOpenShell'
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- uses: mamba-org/setup-micromamba@v3 # https://github.com/mamba-org/setup-micromamba - name: Set up uv
with: uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
environment-name: test-env
create-args: >-
python=3.11
anaconda-client=1.12.3
- name: Run conda cleaner - name: Run conda cleaner
run: python conda/clean-old-versions.py run: uv run --script conda/clean-old-versions.py
+7
View File
@@ -1,3 +1,10 @@
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "anaconda-client==1.12.3",
# ]
# ///
import os import os
from binstar_client.errors import BinstarError from binstar_client.errors import BinstarError