Skip to content

Commit 14b27e9

Browse files
authored
Merge pull request #74 from bobleesj/cookie-docs-fix
Fix documentation build CI workflow
2 parents b9befdf + 96ba768 commit 14b27e9

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/docs.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- cookie
8-
- cookie-doc
97
release:
108

119
jobs:
@@ -22,26 +20,29 @@ jobs:
2220
- uses: conda-incubator/setup-miniconda@v2
2321
with:
2422
activate-environment: build
23+
environment-file: ./environment.yml
24+
python-version: 3
2525
auto-update-conda: true
2626

2727
- 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
3738
3839
- name: build documents
3940
run: make -C doc html
4041

4142
- name: Run tests and upload coverage
4243
shell: bash -l {0}
4344
run: |
44-
conda activate test
45+
conda activate build
4546
coverage run -m pytest -vv -s
4647
coverage report -m
4748
codecov

0 commit comments

Comments
 (0)