miniconda setup #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: miniconda setup | |
on: | |
workflow_dispatch: | |
jobs: | |
setup-conda: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: test | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
channel-priority: flexible | |
show-channel-urls: true | |
- name: Display conda info | |
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 |