Skip to content

fix: ensure logging works properly with new conda CLI plugin (#2512) #3430

fix: ensure logging works properly with new conda CLI plugin (#2512)

fix: ensure logging works properly with new conda CLI plugin (#2512) #3430

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request: null
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -el {0}
jobs:
tests:
name: tests
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Conda env
uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476
with:
environment-file: environment.yml
micromamba-version: 1.5.12-0
cache-environment: true
create-args: >-
python=3.11
coverage
coveralls
conda-forge-tick
- name: install conda-smithy
run: |
conda uninstall --force --yes conda-smithy
python -m pip install -v --no-build-isolation -e .
git config --global user.email "[email protected]"
git config --global user.name "smithy"
- name: test versions
run: |
pip uninstall conda-smithy --yes
[[ $(python -m setuptools_scm) != "0.0.0" ]] || exit 1
rm -rf dist/*
python -m build --sdist
pip install --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import conda_smithy; assert conda_smithy.__version__ != '0.0.0'"
popd
pip uninstall conda-smithy --yes
rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import conda_smithy; assert conda_smithy.__version__ != '0.0.0'"
popd
pip uninstall conda-smithy --yes
python -m pip install -v --no-build-isolation -e .
- name: run tests
run: |
pytest tests --cov conda_smithy --cov-report lcov --cov-report term-missing
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: coveralls
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.lcov
# TODO: revert as soon as feasible; coveralls has an extended outage
# and is recommending this work-around for the time being, see
# https://status.coveralls.io/incidents/pdbt7vdzlvpj
fail-on-error: false