mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 11:33:38 +00:00
conda\clean-old-version: add script metadata
`bash -l` seems to be part of `setup-micromambda`
This commit is contained in:
@@ -18,20 +18,13 @@ env:
|
||||
jobs:
|
||||
activate:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash -l {0}
|
||||
if: |
|
||||
github.repository == 'IfcOpenShell/IfcOpenShell'
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: mamba-org/setup-micromamba@v3 # https://github.com/mamba-org/setup-micromamba
|
||||
with:
|
||||
environment-name: test-env
|
||||
create-args: >-
|
||||
python=3.11
|
||||
anaconda-client=1.12.3
|
||||
- name: Set up uv
|
||||
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
|
||||
|
||||
- name: Run conda cleaner
|
||||
run: python conda/clean-old-versions.py
|
||||
run: uv run --script conda/clean-old-versions.py
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# /// script
|
||||
# requires-python = ">=3.11"
|
||||
# dependencies = [
|
||||
# "anaconda-client==1.12.3",
|
||||
# ]
|
||||
# ///
|
||||
|
||||
import os
|
||||
|
||||
from binstar_client.errors import BinstarError
|
||||
|
||||
Reference in New Issue
Block a user