-
Notifications
You must be signed in to change notification settings - Fork 178
52 lines (46 loc) · 1.59 KB
/
opentrons-ai-server-lint-test.yaml
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
# This workflow runs lint on pull requests that touch anything in the opentrons-ai-server directory
name: 'Opentrons ai-server lint'
on:
pull_request:
paths:
- 'opentrons-ai-server/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
name: 'ai-server lint'
timeout-minutes: 5
runs-on: 'ubuntu-latest'
steps:
- name: Checkout opentrons repo
uses: 'actions/checkout@v4'
- name: Setup Python
uses: 'actions/setup-python@v5'
with:
python-version: '3.12'
cache: 'pipenv'
cache-dependency-path: opentrons-ai-server/Pipfile.lock
- name: Setup
id: install
working-directory: ./opentrons-ai-server
run: make setup
- name: black-check
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped'
working-directory: ./opentrons-ai-server
run: make black-check
- name: ruff
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped'
working-directory: ./opentrons-ai-server
run: make ruff-check
- name: mypy
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped'
working-directory: ./opentrons-ai-server
run: make mypy
- name: unit tests
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped'
working-directory: ./opentrons-ai-server
run: make unit-test