Skip to content

Commit e52eb6a

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

File tree

4 files changed

+72
-2
lines changed

4 files changed

+72
-2
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 git@github.com: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.DEVSTATS_CIRCLECI_TOKEN }}
14+
artifact-path: 0/_build/html/index.html
15+
circleci-jobs: documentation

devstats/publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def publisher(project):
99
basedir = os.path.dirname(__file__)
1010
with open(os.path.join(basedir, "template.md")) as fh:
1111
template = fh.read()
12-
12+
1313
issues = glob(os.path.join(basedir, "reports/issues/*.md"))
1414
for issue in issues:
1515
with open(issue) as fh:

devstats/template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ glue("{{ project }}_query_date", str(query_date.astype("M8[D]")))
7373

7474
{{ first_responders }}
7575

76-
7776
## Pull Requests
7877

7978
```{code-cell} ipython3

0 commit comments

Comments
 (0)