-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) · 1.27 KB
/
code-styles.yml
File metadata and controls
49 lines (42 loc) · 1.27 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
name: Code Styles
on:
push:
branches:
- main
- development
pull_request:
types: [closed]
schedule:
- cron: '0 0 * * 0'
jobs:
code-styles:
name: Python ${{ matrix.python-version }} on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
python-version: [ '3.13' ]
operating-system: [ ubuntu-22.04 ]
steps:
- name: Setup Python
# Commit hash for v5.5.0: https://github.com/actions/setup-python/releases/tag/v5.5.0
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Checkout fail2slack
# Commit hash for v3.5.3: https://github.com/actions/checkout/releases/tag/v4.2.2
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Requirements
run: |
pip install -r requirements.txt
pip install pylint
- name: Log Debug Information
run: |
echo "$GITHUB_REF"
echo "$GITHUB_EVENT_NAME"
python --version
pip --version
pylint --version
- name: Pylint Code Styles
run: |
pylint fail2slack/ -r y