ci: Remove Conda Nightly tests (#3629)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
Julien Jerphanion 2024-12-04 10:53:18 +01:00 committed by GitHub
parent c9eddf3ccd
commit 50c3aae986
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 88 deletions

View File

@ -1,86 +0,0 @@
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: '1.x' # Conda latest is on 1.x version
- 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 }}

View File

@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install pre-commit
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v2
with:
environment-name: linters
create-args: pre-commit

View File

@ -33,7 +33,11 @@ pybind11_add_module(
src/libmambapy/bindings/solver_libsolv.cpp
)
# TODO: remove when `SubdirData::cache_path()` is removed
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if(
CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"
OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
)
# This file uses capturing structured bindings, which was fixed in C++20
set_source_files_properties(
src/libmambapy/bindings/legacy.cpp