Skip to content

Created new conda environment and added it to github actions #21

Created new conda environment and added it to github actions

Created new conda environment and added it to github actions #21

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Cross-Platform Conda Environment Setup and Test
on:
push:
branches: #[ "main", "dev" ]
- main
pull_request:
branches: #[ "main" ]
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.7
auto-update-conda: false
- name: Initialize Conda (ubuntu only) # Windows doesnt require conda initialization
shell: bash -l {0}
if: runner.os == 'Linux'
run: |
conda init bash
source ~/.bashrc
conda create -y -n bnp python=3.7
- name: Create and activate Conda environment and install dependencies
shell: bash -l {0}
run: |
conda create -y -n bnp python=3.7
conda activate bnp
conda install -c conda-forge -c nvidia -c sleap -c anaconda sleap
pip uninstall -y opencv-python-headless
pip install "opencv-contrib-python<4.7.0"
pip install sleap_anipose
pip install "anipose<1.1"
pip install --upgrade apptools