Skip to content

Commit

Permalink
Check shell
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahlanzrath committed Dec 9, 2024
1 parent d97cf31 commit fd81c84
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
#os: [ubuntu-latest]
#python-version: ["3.10", "3.11", "3.12"]
include:
# - os: windows-latest
# python-version: "3.12"
- os: macos-13
python-version: "3.12"
- os: windows-latest
python-version: "3.12"
# - os: macos-13
# python-version: "3.12"

env:
CONDA_FILE: environment.yml
Expand All @@ -45,6 +45,23 @@ jobs:
activate-environment: cadet-process
channels: conda-forge,

- name: Initialize Conda
run: |
conda init bash
source ~/.bashrc
mamba activate cadet-process
python --version
conda info
- name: Run Python Script in Conda Environment
run: |
conda run -n env python --version
conda run -n env python my_script.py
- name: Check Shell
run: |
echo "Using shell: $SHELL"
- name: Cache conda
uses: actions/cache@v4
env:
Expand All @@ -53,11 +70,16 @@ jobs:
with:
path: ${{ env.CONDA }}/envs
key: ${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }}
id: cache

- name: Check Shell
run: |
echo "Using shell: $SHELL"
- name: Update environment
run: |
mamba install "setuptools>=69" "pip>=24"
mamba install python=${{ matrix.python-version }}
mamba install -n cadet-process "setuptools>=69" "pip>=24"
mamba install -n cadet-process python=${{ matrix.python-version }}
echo "python=${{ matrix.python-version }}.*" > $CONDA_PREFIX/conda-meta/pinned
mamba env update -n cadet-process -f ${{ env.CONDA_FILE }}
if: steps.cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit fd81c84

Please sign in to comment.