Skip to content

Commit

Permalink
use conda incubator
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzaxtazi committed Sep 7, 2023
1 parent 2892d6b commit 9278939
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
- "main"

jobs:

example-3:
defaults:
run:
shell: bash -l {0}

test:
runs-on: ubuntu-latest

Expand All @@ -21,21 +27,34 @@ jobs:
# Checkout the latest code from the repo
- name: Checkout repo
uses: actions/checkout@v3

# Setup which version of Python to use
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 # changes this to v3 from v2 for same node12 node16 error
with:
python-version: ${{ matrix.python-version }}

# Display the Python version being used
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install the package using the setup.py
- name: Install pip
run: python -m pip install --upgrade pip


- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: anaconda-client-env
environment-file: environment.yml
auto-activate-base: false
- run: |
conda info
conda list
#- name: Install pip
# run: python -m pip install --upgrade pip

# Install the conda environment
- name: Install conda environment
run: conda env create -f environment.yml
#- name: Install conda environment
# run: conda env create -f environment.yml

#- name: Install conda dependencies
# run: $CONDA/bin/conda env update --file environment.yml --name base
Expand Down

0 comments on commit 9278939

Please sign in to comment.