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

Add CI tests for conda-standalone canaries #711

Merged
merged 7 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 6 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
55 changes: 43 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- "examples/**"
- "scripts/**"
- "tests/**"
- "dev/**"
- "pyproject.toml"
- "setup.cfg"
- "setup.py"
Expand All @@ -31,28 +32,55 @@ defaults:
shell: bash -el {0}
jobs:
tests:
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}, ${{ matrix.micromamba && 'micromamba' || 'conda-standalone' }}
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}, ${{ matrix.conda-standalone }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu, windows]
python-version: ["3.8", "3.9", "3.10", "3.11"]
check-docs: [false]
include:
# UBUNTU
- os: ubuntu
python-version: "3.8"
conda-standalone: conda-standalone
check-docs: true
- os: ubuntu
python-version: "3.9"
micromamba: true
conda-standalone: conda-standalone
check-docs: true
- os: ubuntu
python-version: "3.10"
conda-standalone: conda-standalone-nightly
- os: ubuntu
python-version: "3.11"
conda-standalone: micromamba
# MACOS
jaimergp marked this conversation as resolved.
Show resolved Hide resolved
- os: macos
python-version: "3.9"
conda-standalone: conda-standalone-nightly
- os: macos
python-version: "3.10"
micromamba: true
check-docs: false
# Re-enable once micromamba supports menu creation
conda-standalone: micromamba
- os: macos
python-version: "3.11"
conda-standalone: conda-standalone
# WINDOWS
- os: windows
python-version: "3.8"
conda-standalone: conda-standalone
- os: windows
python-version: "3.9"
conda-standalone: conda-standalone-nightly
- os: windows
python-version: "3.10"
conda-standalone: conda-standalone
- os: windows
python-version: "3.11"
conda-standalone: conda-standalone-nightly
# Micromamba doesn't support Windows yet (menuinst features missing)
# - os: windows
# python-version: "3.8"
# micromamba: true
# check-docs: false
# python-version: 3.11
# conda-standalone: micromamba

env:
PYTHONUNBUFFERED: "1"
steps:
Expand All @@ -75,13 +103,16 @@ jobs:
pip install -e . --no-deps --no-build-isolation
- name: Set up conda executable
run: |
if [[ "${{ matrix.micromamba }}" != "" ]]; then
if [[ "${{ matrix.conda-standalone }}" == "micromamba" ]]; then
conda create -yqp "${{ runner.temp }}/micromamba" -c conda-forge micromamba
if [[ ${{ matrix.os }} == "windows" ]]; then
echo "CONSTRUCTOR_CONDA_EXE=${{ runner.temp }}/micromamba/Library/bin/micromamba.exe" >> $GITHUB_ENV
else
echo "CONSTRUCTOR_CONDA_EXE=${{ runner.temp }}/micromamba/bin/micromamba" >> $GITHUB_ENV
fi
elif [[ "${{ matrix.conda-standalone }}" == "conda-standalone-nightly" ]]; then
conda create -yqp "${{ runner.temp }}/conda-standalone-nightly" -c conda-canary/label/dev conda-standalone
echo "CONSTRUCTOR_CONDA_EXE=${{ runner.temp }}/conda-standalone-nightly/standalone_conda/conda.exe" >> $GITHUB_ENV
else
conda activate constructor-dev
echo "CONSTRUCTOR_CONDA_EXE=$CONDA_PREFIX/standalone_conda/conda.exe" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion dev/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ dependencies:
- python
- conda >=4.6
- ruamel.yaml >=0.11.14,<0.18
- conda-standalone <23.1.0 # https://github.com/conda/constructor/issues/628
- conda-standalone
- pillow >=3.1 # [osx or win]
19 changes: 19 additions & 0 deletions news/711-conda-standalone-canaries
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* Test `conda-standalone` canaries in CI. (#711)