-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.07 KB
/
ci.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
name: check
on: [ push, pull_request ]
jobs:
config:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
pip install mypy psutil
pip install git+https://github.com/qtile/qtile@master
pip install git+https://github.com/elParaguayo/qtile-extras@main
- run: qtile --version
- name: "cmd: black"
uses: psf/black@stable
with:
options: "--check --diff"
src: "."
- name: "cmd: mypy"
if: success() || failure()
run: mypy config.py
- name: "cmd: python"
if: success() || failure()
run: python config.py
- name: "cmd: qtile check"
if: success() || failure()
run: qtile check -c ./config.py