ci: Make Conda Nightly tests use main
over 1.x
#32
Workflow file for this run
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: Conda nightly tests | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 10 * * 0' | |
push: | |
paths: | |
- '.github/workflows/conda_canary.yml' | |
pull_request: | |
paths: | |
- '.github/workflows/conda_canary.yml' | |
permissions: | |
contents: read | |
issues: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: micromamba-shell {0} | |
jobs: | |
conda_nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'main' | |
- name: create mamba build environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: build_env | |
environment-file: ./mamba/environment-dev.yml | |
condarc: | | |
channels: | |
- conda-forge | |
- conda-canary/label/dev | |
channel-priority: flexible | |
create-args: >- | |
python=3.10 | |
conda=*+* | |
# Build Mamba | |
- uses: hendrikmuhs/ccache-action@main | |
with: | |
variant: sccache | |
key: conda-canary-${{ github.job }} | |
restore-keys: conda-canary- | |
- name: build libmamba Python bindings | |
run: | | |
cmake -B build/ -G Ninja \ | |
-D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ | |
-D BUILD_LIBMAMBAPY=ON \ | |
-D BUILD_LIBMAMBA=ON \ | |
-D BUILD_SHARED=ON \ | |
-D BUILD_MAMBA_PACKAGE=ON \ | |
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \ | |
-D CMAKE_C_COMPILER_LAUNCHER=sccache | |
cmake --build build/ --parallel | |
cmake --install build/ | |
- name: install libmambapy | |
run: pip install -e ./libmambapy/ --no-deps | |
- name: build cache statistics | |
run: sccache --show-stats | |
- name: install mamba | |
run: pip install ./mamba[test] --no-deps | |
# Test Mamba with Conda nightly | |
- name: run mamba tests suite | |
run: pytest -v --capture=tee-sys mamba/tests | |
- name: run mamba create/update tests | |
run: | | |
mamba create -n test_env xtensor -c conda-forge -y | |
mamba env create -f mamba/tests/test_env.yml | |
mamba env update -f mamba/tests/update_env.yml | |
- uses: JasonEtco/create-an-issue@1a16035489d05041b9af40b970f02e301c52ffba | |
if: failure() && github.repository_owner == 'mamba-org' && github.event_name == 'schedule' | |
with: | |
filename: .github/workflows/bot_issue_template.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |