debug: Do not promote warnings as errors #38
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@v2 | |
with: | |
environment-name: build_env | |
environment-file: ./dev/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 mamba, libmamba, and libmambapy 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=ON \ | |
-D MAMBA_WARNING_AS_ERROR=OFF \ | |
-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 | |
# 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 }} |