forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.41 KB
/
python-lint.yml
File metadata and controls
51 lines (50 loc) · 1.41 KB
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
name: Python Lint
on:
workflow_dispatch:
pull_request:
branches: [ "main", "feature*" ]
paths:
- 'python/**'
jobs:
ruff:
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "/root/.local/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
cache-dependency-path: "python/pyproject.toml"
- name: Install SemanticKernel
run: cd python && poetry install --no-ansi
- name: Run lint
run: cd python && poetry run ruff check .
black:
strategy:
fail-fast: false
matrix:
python-version: ["3.8"]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "/root/.local/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
cache-dependency-path: "python/pyproject.toml"
- name: Install SemanticKernel
run: cd python && poetry install --no-ansi
- name: Run lint
run: cd python && poetry run black --check .