Skip to content

Commit ee6ab90

Browse files
committed
Add Github action
1 parent 07e742c commit ee6ab90

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
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+
python-version: ${{ matrix.python-version }}
33+
mamba-version: "*"
34+
auto-activate-base: false
35+
channels: conda-forge
36+
37+
- name: Install dependencies
38+
run: mamba install ipython matplotlib flake8
39+
40+
- name: Install package
41+
run: pip install .
42+
43+
- name: Test flake8
44+
run: flake8 matplotlib_inline --ignore=E501,W504,W503

0 commit comments

Comments
 (0)