-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
name: tests
on:
push:
branches:
- main
pull_request: null
env:
PY_COLORS: "1"
jobs:
tests:
name: tests
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
python-version: "3.10"
use-mamba: true
- name: configure conda and install code
shell: bash -el {0}
run: |
mamba install --yes \
--file=requirements.txt \
--file=requirements-dev.txt
python -m pip install -v --no-deps --no-build-isolation -e .
- name: test versions
shell: bash -el {0}
run: |
pip uninstall des-archive-access --yes
[[ $(python setup.py --version) != "0.0.0" ]] || exit 1
rm -rf dist/*
python setup.py sdist
pip install --no-deps --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import des_archive_access; assert des_archive_access.__version__ != '0.0.0'"
popd
pip uninstall des-archive-access --yes
rm -rf dist/*
python -m build --sdist . --outdir dist
pip install --no-deps --no-build-isolation dist/*.tar.gz
pushd ..
python -c "import des_archive_access; assert des_archive_access.__version__ != '0.0.0'"
popd
pip uninstall des-archive-access --yes
python -m pip install -v --no-deps --no-build-isolation -e .
- name: test
shell: bash -el {0}
run: |
pytest -vvs tests
- name: cli tests
shell: bash -el {0}
run: |
des-archive-access-download --help
des-archive-access-download-metadata --help
des-archive-access-make-token --help
des-archive-access --help