Skip to content

simplify workflow

simplify workflow #4

Workflow file for this run

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
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