File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed
Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ # See: https://circleci.com/docs/2.0/language-python/
2+
3+ version : 2.1
4+ jobs :
5+ documentation :
6+ docker :
7+ - image : cimg/python:3.11
8+
9+ steps :
10+ - checkout
11+
12+ - run :
13+ name : Update apt-get
14+ command : |
15+ sudo apt-get update
16+
17+ - restore_cache :
18+ keys :
19+ - pip-cache-v1
20+
21+ - run :
22+ name : Clone website
23+ command :
git clone [email protected] :scientific-python/devstats.scientific-python.org.git 24+
25+ - run :
26+ name : Install Python dependencies
27+ command : |
28+ python3 -m venv venv
29+ source venv/bin/activate
30+ pip install --upgrade pip wheel setuptools
31+ pip install -r devstats.scientific-python.org/requirements.txt
32+ pip list
33+
34+ - save_cache :
35+ key : pip-cache-v1
36+ paths :
37+ - ~/.cache/pip
38+
39+ - run :
40+ name : Install
41+ command : |
42+ source venv/bin/activate
43+ pip install -e .
44+ pip list
45+
46+ - run :
47+ name : Build docs
48+ command : |
49+ # NOTE: bad interaction w/ blas multithreading on circleci
50+ export OMP_NUM_THREADS=1
51+ source venv/bin/activate
52+ cd devstats.scientific-python.org
53+ make html
54+
55+ - store_artifacts :
56+ path : _build/html
Original file line number Diff line number Diff line change 1+ name : circleci
2+
3+ on : [status]
4+ jobs :
5+ documentation :
6+ runs-on : ubuntu-latest
7+ name : Run CircleCI documentation artifact redirector
8+ steps :
9+ - name : GitHub Action step
10+ uses : larsoner/circleci-artifacts-redirector-action@master
11+ with :
12+ repo-token : ${{ secrets.GITHUB_TOKEN }}
13+ api-token : ${{ secrets.CIRCLECI_ARTIFACT_REDIRECTOR_TOKEN }}
14+ artifact-path : 0/_build/html/index.html
15+ circleci-jobs : documentation
You can’t perform that action at this time.
0 commit comments