-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (49 loc) · 1.16 KB
/
main.yml
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
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash -l {0}
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ '3.8', '3.9', '3.10.0', '3.11' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup conda
uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash powershell
cache-environment: true
post-cleanup: 'all'
environment-name: test-env
create-args: >-
python=${{ matrix.python-version }}
pip
- name: Install akernel
run: |
micromamba activate test-env
pip install .[test]
- name: Check style and types
run: |
micromamba activate test-env
black --check akernel
ruff check akernel
mypy akernel
- name: Run tests
run: |
micromamba activate test-env
akernel --help
test -f ${CONDA_PREFIX}/share/jupyter/kernels/akernel/kernel.json
pytest akernel/tests -v