Skip to content

Commit 7550b8e

Browse files
committed
TST: add CI
1 parent 8ea3ff5 commit 7550b8e

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2.1
2+
3+
orbs:
4+
python: circleci/[email protected]
5+
6+
jobs:
7+
build_docs:
8+
executor: python/default
9+
steps:
10+
- checkout
11+
- python/install-deps
12+
- run:
13+
name: Build docs
14+
command: cd docs/ && make html
15+
- persist_to_workspace:
16+
root: docs/_build/html
17+
paths: .
18+
- store_artifacts:
19+
path: docs/_build/html/
20+
21+
workflows:
22+
main:
23+
jobs:
24+
- build_docs

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## PR Summary
2+
3+
4+
<!--
5+
To create a new package yml, make a new file with your package name in the `packages/`
6+
directory with a yml suffix. Examples can be seen in the `packages/` directory, but
7+
at the minimum you need to include the `repo:`, `section:` and `description:` fields.
8+
Please keep the description very short.
9+
10+
Other useful fields are `site:`, `pypi_name`, `conda_package`, (if different from the
11+
github name), and `conda_channel` if not *conda-forge*.
12+
-->

.github/workflows/gh-pages.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '0 9 * * *'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Make docs builds
18+
uses: ammaraskar/sphinx-action@master
19+
with:
20+
docs-folder: "docs/"
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./docs/build/html

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [status]
2+
jobs:
3+
circleci_artifacts_redirector_job:
4+
runs-on: ubuntu-latest
5+
name: Run CircleCI artifacts redirector
6+
steps:
7+
- name: GitHub Action step
8+
uses: larsoner/circleci-artifacts-redirector-action@master
9+
with:
10+
repo-token: ${{ secrets.GITHUB_TOKEN }}
11+
artifact-path: 0/docs/_build/html/index.html
12+
circleci-jobs: build_docs

0 commit comments

Comments
 (0)