mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 22:31:02 +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:
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user