Skip to content

Commit 9e8a806

Browse files
authored
Merge pull request #90 from martinRenou/add_github_actions
Add Github actions
2 parents ff603b1 + dae24d6 commit 9e8a806

File tree

2 files changed

+43
-28
lines changed

2 files changed

+43
-28
lines changed

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
run:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
python-version: [3.6, 3.7, 3.8]
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v1
24+
25+
- name: Setup conda
26+
uses: s-weigand/setup-conda@v1
27+
with:
28+
auto-update-conda: true
29+
update-conda: true
30+
conda-channels: conda-forge
31+
32+
- name: Conda install dependencies
33+
run: conda install python=${{ matrix.python-version }} pip nodejs ipywidgets jupyter jupyterlab pillow flake8
34+
35+
- name: Install ipycanvas
36+
run: pip install -e .
37+
38+
- name: Install labextension (Only on Ubuntu for build speed)
39+
if: matrix.os == 'ubuntu-latest'
40+
run: jupyter labextension install .
41+
42+
- name: Test flake8
43+
run: flake8 ipycanvas --ignore=E501

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)