-
Notifications
You must be signed in to change notification settings - Fork 111
43 lines (39 loc) · 944 Bytes
/
linters.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
---
name: Run linters
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Run the linters tests every 8 hours.
# This will help to identify faster if
# there is a CI failure related to a
# change in any dependency.
schedule:
- cron: '0 */8 * * *'
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Run black
uses: psf/black@stable
isort:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Run isort
uses: isort/[email protected]
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install flake8
run: |
python3 -m pip install -U pip
python3 -m pip install -U flake8
- name: Run flake8
run: flake8