Add toml to coveralls and fix version on CLI

pull/557/head
staticdev 2 years ago
parent 2d5fbaea8b
commit b23f67361a

@ -53,8 +53,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Append GitHub Actions system path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: pip install coveralls
- run: pip install coverage[toml]
- run: pip install .
- run: coverage run --source=yamllint -m unittest discover
# https://github.com/AndreMiras/coveralls-python-action/issues/18
- run: echo -e "[run]\nrelative_files = True" > .coveragerc
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop

@ -45,7 +45,7 @@ If you prefer installing from source, you can run, from the source directory:
.. code:: bash
python setup.py sdist
poetry build
pip install --user dist/yamllint-*.tar.gz
Running yamllint

@ -19,7 +19,7 @@ import os
import platform
import sys
from yamllint import APP_DESCRIPTION, APP_NAME, APP_VERSION
from yamllint import APP_DESCRIPTION, APP_NAME, __version__
from yamllint import linter
from yamllint.config import YamlLintConfig, YamlLintConfigError
from yamllint.linter import PROBLEM_LEVELS
@ -171,7 +171,7 @@ def run(argv=None):
action='store_true',
help='output only error level problems')
parser.add_argument('-v', '--version', action='version',
version='{} {}'.format(APP_NAME, APP_VERSION))
version='{} {}'.format(APP_NAME, __version__))
args = parser.parse_args(argv)

Loading…
Cancel
Save