-
Notifications
You must be signed in to change notification settings - Fork 10
65 lines (51 loc) · 1.46 KB
/
lint.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
58
59
60
61
62
63
64
65
name: lint
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
lint:
strategy:
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.9" ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Set up python
id: setup-python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true
- name: Load cached poetry dependencies
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}
- name: Install package dependencies
run: poetry install --no-interaction --no-root
- name: Install stride
run: poetry run pip install git+https://github.com/trustimaging/stride@2520c59
- name: Install napari
run: poetry run pip install "napari[all,pyqt6_experimental]"
- name: Install neurotechdevkit
run: poetry install --only-root
- name: Run linting
run: |
make lint-check
- name: Run spellcheck
run: |
make spellcheck