Skip to content
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
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: ${{ matrix.os }}-latest

# this is needed for conda environments to activate automatically
Expand All @@ -48,12 +50,12 @@ jobs:

steps:
- name: Get source code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Cache conda packages
uses: actions/cache@v4
uses: actions/cache@v5
env:
# increment to reset cache
CACHE_NUMBER: 0
Expand All @@ -66,25 +68,24 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
python-version: ${{ matrix.python-version }}
use-mamba: 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 --quiet --yes pip2conda "grayskull>=3.1.0"
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