generated from conda/conda-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (49 loc) · 1.66 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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@d632683dd7b4114ad314bca15554477dd762a938 # v4
- uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # 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