Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.yml github actions #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,27 @@ jobs:
- name: Configure conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
miniforge-variant: Mambaforge
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
use-mamba: true
# this is needed for caching to work properly:
use-only-tar-bz2: true

- name: Conda info
run: conda info --all

- name: Install dependencies
run: |
# parse requirements to install as much as possible with conda
mamba create --name pip2conda pip2conda
mamba run --name pip2conda pip2conda \
conda create --name pip2conda pip2conda
conda run --name pip2conda pip2conda \
--all \
--output environment.txt \
--python-version ${{ matrix.python-version }}
echo "-----------------"
cat environment.txt
echo "-----------------"
mamba install --quiet --yes --name test --file environment.txt
conda install --quiet --yes --name test --file environment.txt

- name: Install PyOmicron
run: python -m pip install --editable . --no-build-isolation -vv
Expand Down
Loading