-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (33 loc) · 890 Bytes
/
Copy pathpython-sanity.yml
File metadata and controls
42 lines (33 loc) · 890 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
---
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2026 SUSE Software Solutions
#
# Authors: Daniel Wagner <dwagner@suse.de>
name: Python Sanity
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
lint:
name: Lint (${{ matrix.container }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- ghcr.io/linux-nvme/nvmetcli-debian:latest
- ghcr.io/linux-nvme/nvmetcli-fedora:latest
- ghcr.io/linux-nvme/nvmetcli-tumbleweed:latest
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: flake8
run: python3 -m flake8 nvmet/ nvmetcli
- name: pylint
run: python3 -m pylint --enable=E nvmet/ nvmetcli
- name: mypy
run: python3 -m mypy