From ab1993d01183df91ba9263c4746a7588502fc30b Mon Sep 17 00:00:00 2001 From: PrinceWalnut Date: Wed, 1 Nov 2023 13:55:47 -0400 Subject: [PATCH] Explicitly sourced conda environment for python --- .github/workflows/publish.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 996f0ee..d08f54b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,8 +16,11 @@ jobs: miniconda-version: "latest" channels: conda-forge, defaults auto-activate-base: true - - name: Install DIALS environment and more + activate-environment: "" + - name: Install DIALS environment and all dependencies run: | + source $CONDA/etc/profile.d/conda.sh + conda activate which python python --version echo $CONDA @@ -29,15 +32,14 @@ jobs: export SPHINXBUILD="$CONDA/bin/sphinx-build" make clean make html - - name: Install dependencies - run: | which python echo $CONDA python -m pip install --upgrade pip - pip install -U setuptools setuptools_scm wheel - pip install packaging twine typing-extensions tox-conda myst-parser docutils + pip install -U setuptools setuptools_scm wheel packaging twine typing-extensions tox-conda myst-parser docutils - name: Build the Python package run: | + source $CONDA/etc/profile.d/conda.sh + conda activate which python echo $CONDA conda list