Skip to content

Commit

Permalink
additional info for conda incubator
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzaxtazi committed Sep 7, 2023
1 parent 7683d60 commit 144a1da
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
# # Run in all these versions of Python
# Run in all these versions of Python
python-version: ["3.10"] # 3.5, 3.6, 3.7,

steps:
Expand All @@ -36,33 +36,17 @@ jobs:
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: anaconda-client-env
activate-environment: test-env
channels: conda-forge
channel-priority: true
python-version: "3.10"
environment-file: environment.yml
mamba-version: "*"
auto-activate-base: false
use-mamba: true
- 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 dependencies
# run: $CONDA/bin/conda env update --file environment.yml --name base
# python -m pip install --upgrade conda

#$CONDA/bin/conda env update --file environment.yml --name base
# CONDA is an environment variable pointing to the root of the miniconda directory


# Install pytest (if not in conda env) (you can use some other testing utility)
#- name: Install pytest
# run: |
# python -m pip install --upgrade pip
# pip install pytest
# Run the tests. I'm using pytest and the file is in the tests directory.
- name: Run tests
run: pytest tests.py

0 comments on commit 144a1da

Please sign in to comment.