-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.05 KB
/
ci-py.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/softprops/github-actions-schemas/master/workflow.json
name: CI (python)
on:
push:
branches: ["main"]
paths:
- "**/*.py"
pull_request:
branches: ["main"]
paths:
- "**/*.py"
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip" # caching pip dependencies
- name: Install linter
run: pip install pylint==2.17.5
- name: Install requirements
run: pip install -r requirements.txt
- name: Lint
run: pylint friends_queue
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip" # caching pip dependencies
- name: Install formatter
run: pip install black==23.7.0
- name: Check formatting
run: black --check friends_queue