Skip to content

Commit

Permalink
Add basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Mar 1, 2022
1 parent d5e13a7 commit 44bc940
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

defaults:
run:
shell: bash -l {0}

jobs:
run:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.9']

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: jupyterlite-sphinx
environment-file: dev-environment.yml
python-version: ${{ matrix.python-version }}
mamba-version: "*"
auto-activate-base: false
channels: conda-forge

- name: Install jupyterlite-sphinx
run: pip install -e .

- name: Build docs
run: sphinx-build . build -vvv
working-directory: docs

- name: Test PEP8
run: black --check src
13 changes: 13 additions & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: jupyterlite-sphinx-dev
channels:
- conda-forge
dependencies:
- pip
- jupyter_server
- jupyterlab_server
- pydata-sphinx-theme
- docutils
- sphinx
- black
- pip:
- jupyterlite

0 comments on commit 44bc940

Please sign in to comment.