mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 18:36:33 +00:00
One day, our world will be sane
This commit is contained in:
parent
b1c9f95a86
commit
acc3506963
3 changed files with 48 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ charset = utf-8
|
|||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
end_of_line = lf
|
||||
max_line_length = null
|
||||
max_line_length = 9999
|
||||
|
||||
# YAML indentation
|
||||
[*.{yml,yaml}]
|
||||
|
|
|
|||
46
.github/workflows/python-sanity.yaml
vendored
Normal file
46
.github/workflows/python-sanity.yaml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
name: Python sanity
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [2.7, 3.6, 3.7, 3.8]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings.
|
||||
flake8 . --exit-zero \
|
||||
| awk -F: '{ gsub(/^[ \t]+/,"",$4); print "::error file=" $1 ",line=" $2 ",col=" $3 "::" $4 }'
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
coverage run
|
||||
coverage report
|
||||
|
||||
- name: Upload coverage report to Codecov
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
run: |
|
||||
coverage xml
|
||||
bash <(curl -s https://codecov.io/bash) \
|
||||
|| echo "::warning ::Codecov upload failed"
|
||||
|
||||
2
tox.ini
2
tox.ini
|
|
@ -21,4 +21,4 @@ source =
|
|||
service.py
|
||||
.config/generate_xml.py
|
||||
omit = tests/*
|
||||
command_line = -m pytest
|
||||
command_line = -m pytest --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue