-
Notifications
You must be signed in to change notification settings - Fork 38
50 lines (42 loc) · 950 Bytes
/
main.yml
File metadata and controls
50 lines (42 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
defaults:
run:
shell: bash -l {0}
jobs:
test:
name: Test
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: nbterm-dev
environment-file: dev-environment.yml
python-version: ${{ matrix.python-version }}
mamba-version: "*"
auto-activate-base: false
channels: conda-forge
- name: Install nbterm
run: |
pip install -e .
- name: Check style
run: |
black --check nbterm
flake8 --max-line-length 100 nbterm
- name: Run tests
run: |
mypy nbterm
nbterm --help
py.test nbterm/tests