Skip to content

Commit

Permalink
Update and rename python-conda-env.yml to python-conda-conda-env-crea…
Browse files Browse the repository at this point in the history
…te-pip-install-pytest

not convinced this will work. lets see.
  • Loading branch information
ilaflott authored Jul 23, 2024
1 parent aab9702 commit 6cd38e8
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build conda pkg and run tests
name: conda-env-create-pip-install-pytest

on: [push]

Expand All @@ -14,14 +14,19 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies

- name: Create catalogbuilder environment
run: |
# create environment catalogbuilder will be installed into
conda env create -f environment.yml --name catalogbuilder
- name: Import Test with pytest
# install catalogbuilder
pip install .

- name: Run pytest in catalogbuilder environment
run: |
conda install pytest
$CONDA/envs/catalogbuilder/bin/pytest
$CONDA/envs/catalogbuilder/bin/pytest

0 comments on commit 6cd38e8

Please sign in to comment.