From 7ba184907cf4d1ffc1f9fbbd5120c199ca07cb9c Mon Sep 17 00:00:00 2001 From: Till Sauerwein Date: Fri, 8 Sep 2023 11:28:44 +0200 Subject: [PATCH] change structure of initiating conda bash and sourcing bash in workflows main.yml --- .github/workflows/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80a69d7..85b8390 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,9 +51,6 @@ jobs: - name: Add reademption bin to PATH shell: bash run: echo "bin" >> $GITHUB_PATH - - run: conda init bash - - run: source /home/runner/.bashrc - - run: conda activate myenv - name: Install dependencies run: | python -m pip install --upgrade pip @@ -67,6 +64,15 @@ jobs: - name: Update shell: bash run: sudo apt-get update + - name: init bash + shell: bash + run: conda init bash + - name: source bash + shell: bash + run: source /home/runner/.bashrc + - name: activate conda env + shell: bash + run: conda activate myenv - name: Install packages shell: bash run: sudo apt-get install -y python3 python3-setuptools python3-pip cython3 zlib1g-dev make libncurses5-dev libxml2-dev libcurl4-openssl-dev r-base