Skip to content

Removing conda init #10

Removing conda init

Removing conda init #10

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" ]
pull_request:
branches: [ "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 and create environment
# shell: bash -l {0}
# run: |
# conda init bash
# source ~/.bashrc
# conda create -y -n bnp python=3.7
- name: Activate Conda environment and install dependencies
# shell: bash -l {0}
run: |
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