From b10379e7ffd34e4c671ffce4b93f9fbd39a9aee6 Mon Sep 17 00:00:00 2001 From: rvlb-19 Date: Thu, 15 Apr 2021 17:09:58 -0300 Subject: [PATCH 1/3] Add coveralls on GH Actions --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa283a4..9e5bb36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,8 @@ jobs: with: path: ${{ env.pythonLocation }} key: ${{ matrix.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }} - - name: Install tox and tox-gh-actions - run: pip install tox==3.21.3 tox-gh-actions==2.4.0 + - name: Install tox, tox-gh-actions and coveralls + run: pip install tox==3.21.3 tox-gh-actions==2.4.0 coveralls==3.0.0 - name: Lint using flake8 if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.6' && matrix.pytorch-version == '1.8' }} run: tox -e flake8 @@ -45,8 +45,8 @@ jobs: name: tox-gh-actions-coverage path: coverage.xml if-no-files-found: error - #- name: Upload coverage.xml to codecov - # if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && matrix.pytorch-version == '1.8' }} - # uses: codecov/codecov-action@v1 - # with: - # fail_ci_if_error: true + - name: Coveralls + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && matrix.pytorch-version == '1.8' }} + run: coveralls + env: + github-token: ${{ secrets.GITHUB_TOKEN }} From 7c539bd749a1b289e896b2e792c1eefdce24fd6f Mon Sep 17 00:00:00 2001 From: rvlb-19 Date: Thu, 15 Apr 2021 17:16:21 -0300 Subject: [PATCH 2/3] Fix env var name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e5bb36..dbc0ad6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,4 +49,4 @@ jobs: if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && matrix.pytorch-version == '1.8' }} run: coveralls env: - github-token: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 2eb9ea7e417e9ce7288096679491224c4a4e10a0 Mon Sep 17 00:00:00 2001 From: rvlb-19 Date: Thu, 15 Apr 2021 17:31:59 -0300 Subject: [PATCH 3/3] Add coveralls badge --- .github/workflows/ci.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbc0ad6..fa07099 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,6 @@ jobs: if-no-files-found: error - name: Coveralls if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && matrix.pytorch-version == '1.8' }} - run: coveralls + run: coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 8506537..98af428 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/entity-embed)](https://pypi.org/project/entity-embed/) [![CI](https://github.com/vintasoftware/entity-embed/actions/workflows/ci.yml/badge.svg)](https://github.com/vintasoftware/entity-embed/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/entity-embed/badge/?version=latest)](https://entity-embed.readthedocs.io/en/latest/?badge=latest) -[![codecov](https://codecov.io/gh/vintasoftware/entity-embed/branch/main/graph/badge.svg?token=4BW63JN071)](https://codecov.io/gh/vintasoftware/entity-embed) +[![Coverage Status](https://coveralls.io/repos/github/vintasoftware/entity-embed/badge.svg?branch=main)](https://coveralls.io/github/vintasoftware/entity-embed?branch=main) [![License: MIT](https://img.shields.io/github/license/vintasoftware/django-react-boilerplate.svg)](LICENSE.txt) Entity Embed allows you to transform entities like companies, products, etc. into vectors to support **scalable Record Linkage / Entity Resolution using Approximate Nearest Neighbors**.