Skip to content

Commit

Permalink
Use micromamba instead of conda
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Jul 19, 2023
1 parent 9d70a86 commit 5c0d532
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,12 @@ jobs:
# Default values
- env_file: environment_no_cuda.yml
- test_args: --durations=-1 tests/
- uninstall_opencv: conda list | grep opencv | awk '{system("pip uninstall " $1 " -y")}'
# Mac specific values
- os: macos-latest
env_file: environment_mac.yml
# Ubuntu specific values
- os: ubuntu-22.04
test_args: --cov=sleap --cov-report=xml --durations=-1 tests/
# Windows specific values
- os: windows-2022
uninstall_opencv: for /f "tokens=1" %a in ('conda list ^| findstr opencv') do pip uninstall %a -y
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -109,7 +105,7 @@ jobs:
- name: Test with pytest
shell: bash -l {0}
run: |
${{ matrix.uninstall_opencv }}
micromamba list | grep opencv | awk '{system("pip uninstall " $1 " -y")}'
pip install "opencv-contrib-python<4.7.0"
pytest ${{ matrix.test_args }}
Expand Down

0 comments on commit 5c0d532

Please sign in to comment.