From 9c7d8765702f5d8e4711ae6feb541045e03780de Mon Sep 17 00:00:00 2001 From: kmlefran Date: Sun, 21 Jan 2024 12:00:27 -0500 Subject: [PATCH] Implement coveralls --- .github/workflows/ci.yml | 8 ++++++-- pyproject.toml | 10 ++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 083262f..0b2d939 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,8 +27,12 @@ jobs: - name: Run test suite env: # show timings of tests - PYTEST_ADDOPTS: "--durations=0" - run: pytest --cov group_decomposition --cov-append . + PYTEST_ADDOPTS: --durations=0 + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + py.test --cov aiida_aimall --cov-append . + coveralls --service=github docs: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 4255440..4dbed03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,10 +35,12 @@ Source = "https://github.com/kmlefran/group_decomposition" testing = [ "pgtest~=1.3.1", "wheel~=0.31", - "coverage[toml]", + "coverage", "pytest~=6.0", "pytest-cov", - "rdkit" + "pytest-regressions~=2.3", + "rdkit", + "coveralls" ] pre-commit = [ "pre-commit~=2.2", @@ -77,10 +79,10 @@ filterwarnings = [ "ignore::DeprecationWarning:yaml:", ] -[tool.coverage.run] +#[tool.coverage.run] # Configuration of [coverage.py](https://coverage.readthedocs.io) # reporting which lines of your plugin are covered by tests -source=["group_decomposition"] +#source=["group_decomposition"] [tool.isort] # Configuration of [isort](https://isort.readthedocs.io)