From 29cc05c98ec3c22597a1d42d7caff9a9ea8eb6f8 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Tue, 12 Mar 2024 23:11:34 -0700 Subject: [PATCH] attempt updating the CI conda environment --- .github/workflows/setup-conda.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/setup-conda.yml b/.github/workflows/setup-conda.yml index 0547b31..e095da7 100644 --- a/.github/workflows/setup-conda.yml +++ b/.github/workflows/setup-conda.yml @@ -13,16 +13,28 @@ jobs: run: shell: bash -el {0} steps: - - uses: actions/checkout@v4 - - uses: conda-incubator/setup-miniconda@v3 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup miniconda + uses: conda-incubator/setup-miniconda@v4 with: activate-environment: test python-version: ${{ matrix.python-version }} channels: conda-forge channel-priority: flexible show-channel-urls: true - - run: | + run: | conda info conda list conda config --show-sources conda config --show + - name: Install pyproject2conda + run: | + conda install -c conda-forge pyproject2conda -y + - name: Convert pyproject to environment.yml + run: | + pyproject2conda yaml -e test --python-include python=${{ matrix.python-version }} > environment.yml + - name: Install dependencies from environment.yml + run: | + conda env update --file environment.yml --name test + rm environment.yml