Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kulaga committed Jun 4, 2024
1 parent 4224922 commit 569cae6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ jobs:
- name: Create environment
run: |
micromamba create --name test-env python=${{ matrix.python-version }} -y
echo "source activate test-env" >> $GITHUB_ENV
micromamba create --name test-env -f environment.yaml -y -c conda-forge
echo "micromamba activate test-env" >> $GITHUB_ENV
- name: Install dependencies
run: |
source activate test-env
if [ -f environment.yml ]; then micromamba env update --file environment.yml --name test-env; fi
if [ -f requirements.txt ]; then micromamba run -n test-env pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then micromamba run -n test-env pip install -r requirements-dev.txt; fi
run: micromamba run -n test-env micromamba install -y -f environment.yaml -c conda-forge

- name: Run tests
run: |
source activate test-env
if [ -f pytest.ini ]; then micromamba run -n test-env pytest; fi
run: micromamba run -n test-env pytest

0 comments on commit 569cae6

Please sign in to comment.