Skip to content

Commit a1c2515

Browse files
authored
build: add github actions (#54)
1 parent 503a4d9 commit a1c2515

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

.github/requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jupyterlab
2+
ipywidgets>=7.0.0
3+
pytest
4+
coverage

.github/workflows/unit.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
- push
5+
- pull_request
6+
- workflow_dispatch
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: [3.6, 3.7, 3.8, 3.9]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: pip install -r .github/requirements.txt
24+
- name: Test formatting
25+
uses: psf/black@stable
26+
- name: Setup flake8 annotations
27+
uses: rbialon/flake8-annotations@v1
28+
- name: test with pytest
29+
run: coverage run -m pytest --color=yes tests
30+

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ ipyvue/labextension/
1111
ipyvue/nbextension/
1212
js/lib
1313
js/jupyter-vue-*.tgz
14+
15+
# coverage
16+
.coverage

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![Version](https://img.shields.io/npm/v/jupyter-vue.svg)](https://www.npmjs.com/package/jupyter-vue)
22
[![Version](https://img.shields.io/pypi/v/ipyvue.svg)](https://pypi.python.org/project/ipyvue)
33
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/ipyvue.svg)](https://anaconda.org/conda-forge/ipyvue)
4+
[![black badge](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
45

56
ipyvue
67
======

0 commit comments

Comments
 (0)