-
Notifications
You must be signed in to change notification settings - Fork 65
48 lines (44 loc) · 1.41 KB
/
pytest_conda_linux_image.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
name: CPU PyTest in Conda Dev/Work Branch Image
on:
push:
branches:
- 'dev'
- 'work'
paths-ignore:
- '.github/workflows/**'
- 'docs/**'
jobs:
build-linux-and-start-pytest:
runs-on: cpu
steps:
- uses: actions/checkout@v3
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file tests/workflows_conf/environment_linux_py38.yml --name test_image -q
- name: Install Stereopy dependencies
run: |
conda init bash
source ~/.bashrc
conda activate test_image
pip install -r requirements.txt -q
# TODO temporarily not install `tests/extra_requirements.txt`
pip install -r tests/extra_requirements.txt -q
pip install -r tests/image_requirements.txt -q
pip install pathlib -q
~/anaconda3/envs/test_image/bin/python setup.py develop
- name: Show Env Info
run: |
conda init bash
source ~/.bashrc
conda activate test_image
which python
conda info
env
pip list
- name: Test with pytest
run: |
~/anaconda3/envs/test_image/bin/python -m pytest -m "cell_cut_env" --durations=0