Skip to content

Commit e86026c

Browse files
committed
Test that devstats website builds with package
1 parent 0add407 commit e86026c

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

.circleci/config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

.github/workflows/circleci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)