Skip to content

Commit 44bc940

Browse files
committed
Add basic CI
1 parent d5e13a7 commit 44bc940

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
15+
jobs:
16+
run:
17+
runs-on: ${{ matrix.os }}
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest]
23+
python-version: ['3.9']
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
29+
- name: Setup conda
30+
uses: conda-incubator/setup-miniconda@v2
31+
with:
32+
activate-environment: jupyterlite-sphinx
33+
environment-file: dev-environment.yml
34+
python-version: ${{ matrix.python-version }}
35+
mamba-version: "*"
36+
auto-activate-base: false
37+
channels: conda-forge
38+
39+
- name: Install jupyterlite-sphinx
40+
run: pip install -e .
41+
42+
- name: Build docs
43+
run: sphinx-build . build -vvv
44+
working-directory: docs
45+
46+
- name: Test PEP8
47+
run: black --check src

dev-environment.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: jupyterlite-sphinx-dev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- pip
6+
- jupyter_server
7+
- jupyterlab_server
8+
- pydata-sphinx-theme
9+
- docutils
10+
- sphinx
11+
- black
12+
- pip:
13+
- jupyterlite

0 commit comments

Comments
 (0)