File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- - cookie
8
- - cookie-doc
9
7
release :
10
8
11
9
jobs :
@@ -22,26 +20,29 @@ jobs:
22
20
- uses : conda-incubator/setup-miniconda@v2
23
21
with :
24
22
activate-environment : build
23
+ environment-file : ./environment.yml
24
+ python-version : 3
25
25
auto-update-conda : true
26
26
27
27
- name : install requirements
28
- run : >-
29
- conda install -n build -c conda-forge
30
- --file requirements/build.txt
31
- --file requirements/run.txt
32
- --file requirements/docs.txt
33
- --quiet --yes
34
-
35
- - name : install the package
36
- run : python -m pip install . --no-deps
28
+ run : |
29
+ conda config --set always_yes yes --set changeps1 no
30
+ conda config --add channels conda-forge
31
+ conda create -n build python=3.12
32
+ conda activate build
33
+ conda install --file requirements/build.txt
34
+ conda install --file requirements/run.txt
35
+ conda install --file requirements/test.txt
36
+ conda install --file requirements/docs.txt
37
+ python -m pip install . --no-deps
37
38
38
39
- name : build documents
39
40
run : make -C doc html
40
41
41
42
- name : Run tests and upload coverage
42
43
shell : bash -l {0}
43
44
run : |
44
- conda activate test
45
+ conda activate build
45
46
coverage run -m pytest -vv -s
46
47
coverage report -m
47
48
codecov
You can’t perform that action at this time.
0 commit comments