Skip to content

Update meta.yaml

Update meta.yaml #15

name: conda-env-create-and-pytest
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
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: Create catalogbuilder environment
run: |
# create environment catalogbuilder will be installed into
conda env create -f environment.yml --name catalogbuilder
# install catalogbuilder
pip install .
- name: Run pytest in catalogbuilder environment
run: |
$CONDA/envs/catalogbuilder/bin/pytest