forked from alexplesoiu/dns-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.2 KB
/
pylint.yaml
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
name: Pylint
on:
workflow_dispatch:
push:
pull_request:
env:
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
DNS_RECORD_COMMENT_KEY: ${{ secrets.DNS_RECORD_COMMENT_KEY }}
DOMAINS_FILE_PATH: ${{ secrets.DOMAINS_FILE_PATH }}
DOMAINS: ${{ secrets.DOMAINS }}
SCHEDULE_MINUTES: "5"
TTL: "1"
PROXIED: "True"
TYPE: "A"
UPDATE_TYPE: "False"
UPDATE_PROXY: "False"
UPDATE_TTL: "False"
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pytest pytest-md pytest-emoji
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: Run pytest
uses: pavelzw/[email protected]
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: 'functions.py -q'
click-to-expand: true
report-title: 'Test Report'