Skip to content

Commit f1a7f65

Browse files
authored
Update release_conda.yml
1 parent 35307cc commit f1a7f65

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/release_conda.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,25 @@ jobs:
3030
with:
3131
miniconda-version: latest
3232
auto-update-conda: true
33-
use-mamba: false # usa solver clásico
33+
channels: conda-forge,defaults
34+
activate-environment: base
35+
use-mamba: false
3436

35-
- name: Create conda environment
37+
- name: Prepare conda environment (fast + stable)
3638
run: |
3739
conda config --add channels conda-forge
3840
conda config --add channels defaults
3941
conda config --set channel_priority strict
40-
conda config --set always_yes true
41-
conda config --set report_errors false
42-
conda install -n base conda-libmamba-solver -c conda-forge
43-
CONDA_NO_PLUGINS=true conda env create -f environment.yml --solver libmamba
44-
42+
conda install -n base -c conda-forge conda-libmamba-solver -y
43+
conda config --set experimental_solver libmamba
44+
# Crear entorno base sin .yml (más rápido)
45+
conda create -n dl1 python=3.10 pip setuptools setuptools_scm -y
46+
conda activate dl1
47+
pip install -e .
4548
4649
- name: Install conda-build and anaconda-client
4750
run: |
48-
CONDA_NO_PLUGINS=true conda install -c conda-forge conda-build anaconda-client -y --solver classic
51+
conda install -c conda-forge conda-build anaconda-client -y
4952
5053
- name: Determine version from Git tag
5154
id: git_version
@@ -56,17 +59,19 @@ jobs:
5659
run: |
5760
VERSION_NUMBER="${GIT_DESCRIBE_TAG#v}" # elimina la 'v' inicial
5861
sed -i "s|^{% set version.*%}|{% set version = \"$VERSION_NUMBER\" %}|" .github/conda/meta.yaml
62+
echo "Set version to $VERSION_NUMBER in meta.yaml"
5963
6064
- name: Build conda package
6165
run: |
62-
PACKAGE_FILE=$(CONDA_NO_PLUGINS=true conda build .github/conda --output)
63-
echo "Package will be built at: $PACKAGE_FILE"
64-
CONDA_NO_PLUGINS=true conda build .github/conda
66+
echo "Building package..."
67+
PACKAGE_FILE=$(conda build .github/conda --output)
68+
conda build .github/conda
69+
echo "Package built: $PACKAGE_FILE"
6570
6671
- name: Upload package to Anaconda.org
6772
env:
6873
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
6974
run: |
70-
PACKAGE_FILE=$(CONDA_NO_PLUGINS=true conda build .github/conda --output)
75+
PACKAGE_FILE=$(conda build .github/conda --output)
7176
echo "Uploading package: $PACKAGE_FILE"
72-
CONDA_NO_PLUGINS=true anaconda upload "$PACKAGE_FILE" --user ctlearn-project --label main --force
77+
anaconda upload "$PACKAGE_FILE" --user ctlearn-project --label main --force

0 commit comments

Comments
 (0)