Skip to content

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group #53

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group

Bump actions/checkout from 5.0.0 to 6.0.0 in the github-actions group #53

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request: null
env:
PY_COLORS: "1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: tests
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
- uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v1
with:
environment-file: environment.yml
environment-name: conda-forge-conda-plugins
- name: configure conda and install code
run: |
pip install --no-deps --no-build-isolation -e .
- name: test versions
run: |
pip uninstall conda-forge-conda-plugins --yes
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1
rm -rf dist/*
python setup.py sdist
pip install -vv --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_conda_plugins; assert conda_forge_conda_plugins.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-conda-plugins --yes
rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-deps --no-build-isolation dist/*.tar.gz
cd ..
python -c "import conda_forge_conda_plugins; assert conda_forge_conda_plugins.__version__ != '0.0.0'"
cd -
pip uninstall conda-forge-conda-plugins --yes
python -m pip install -v --no-deps --no-build-isolation -e .
- name: run pytest
run: |
pytest -vvs tests