From 569cae6af4a390eededa8bb1781518c45889dd0a Mon Sep 17 00:00:00 2001 From: Anton Kulaga Date: Wed, 5 Jun 2024 01:25:30 +0300 Subject: [PATCH] fix workflows --- .github/workflows/python-ci.yaml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-ci.yaml b/.github/workflows/python-ci.yaml index 2fb8a33..e09e406 100644 --- a/.github/workflows/python-ci.yaml +++ b/.github/workflows/python-ci.yaml @@ -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 \ No newline at end of file