diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..6dac948 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = tests/* +relative_files = True diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e04ba2e..4f6276f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,20 @@ name: CI -on: pull_request +on: + pull_request: + paths-ignore: + - "docs/**" + - "*.md" jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10"] # , "3.11.0-beta.1"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -43,3 +46,22 @@ jobs: - name: Run all tests and linting run: | make test + + - name: Publish coverage to Coveralls + uses: AndreMiras/coveralls-python-action@v20201129 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel: true + flag-name: py${{ matrix.python-version }} + debug: true + + coveralls-finish: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Coveralls finished + uses: AndreMiras/coveralls-python-action@v20201129 + with: + parallel-finished: true + debug: true diff --git a/README.md b/README.md index dfd053e..77d353d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # sqlean

- Python versions: 3.7, 3.8, 3.9, 3.10 - PyPI - Code style: black - License: MIT + Coverage Status + Python versions: 3.7, 3.8, 3.9, 3.10 + PyPI + Code style: black + License: MIT

sqlean is a Python CLI to clean your SQL queries. It aspires to be the diff --git a/pyproject.toml b/pyproject.toml index a302374..8737021 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,9 +45,6 @@ markers = ["generate_snapshots"] strict = "True" warn_unused_ignores = "False" -[tool.coverage.run] -omit = ["tests/*", "sqlean/parsetab.py"] - [tool.pylint.master] ignore-paths = "tests/" min-public-methods = 1