Skip to content

Commit

Permalink
Change codecov v3 for GitHub workflow (#184)
Browse files Browse the repository at this point in the history
* Update unit_tests_with_latest_deps.yml

* Update changelog.rst

* Update setup.cfg

* Update unit_tests_with_latest_deps.yml

* Update unit_tests_with_latest_deps.yml

* Update unit_tests_with_latest_deps.yml

* Update setup.cfg

* Update unit_tests_with_latest_deps.yml

* Update README.md

* Update README.md
  • Loading branch information
gsheni authored Jul 25, 2022
1 parent 5fd1d45 commit 11837a5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/unit_tests_with_latest_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python_version: ["3.8", "3.9", "3.10"]
featuretools_version: ["Release", "Main"]
featuretools_version: ["release", "main"]
steps:
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v2
Expand All @@ -30,13 +30,13 @@ jobs:
- name: Install requirements
run: |
pip config --site set global.progress_bar off
- if: ${{ matrix.featuretools_version == 'Main' }}
- if: ${{ matrix.featuretools_version == 'main' }}
name: Install latest version of Featuretools from main branch
run: |
make installdeps-complete
make installdeps-test
pip install git+https://github.com/alteryx/featuretools.git@main#egg=featuretools --force-reinstall
- if: ${{ matrix.featuretools_version == 'Release' }}
- if: ${{ matrix.featuretools_version == 'release' }}
name: Install latest version of Featuretools from PyPI
run: |
make installdeps-complete
Expand All @@ -48,10 +48,11 @@ jobs:
- if: ${{ matrix.python_version == 3.8 && matrix.featuretools_version == 'main' }}
name: Run unit tests with code coverage
run: |
make testcoverage
pytest nlp_primitives/ --cov=nlp_primitives/ --cov-config=pyproject.toml --cov-report=xml:coverage.xml
- if: ${{ matrix.python_version == 3.8 && matrix.featuretools_version == 'main' }}
name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ github.workspace }}/coverage.xml
verbose: true
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NLP Primitives

<p align="center">
<a href="https://codecov.io/gh/alteryx/nlp_primitives">
<img src="https://codecov.io/gh/alteryx/nlp_primitives/branch/main/graph/badge.svg"/>
</a>
<a href="https://github.com/alteryx/nlp_primitives/actions?query=branch%3Amain+workflow%3ATests" target="_blank">
<img src="https://github.com/alteryx/nlp_primitives/workflows/Tests/badge.svg?branch=main" alt="Tests" />
</a>
Expand All @@ -23,7 +26,8 @@ nlp_primitives is a Python library with Natural Language Processing Primitives,

nlp_primitives allows you to make use of text data in your machine learning pipeline in the same pipeline as the rest of your data.

### Install
## Installation

There are two options for installing nlp_primitives. Both of the options will also install Featuretools if it is not already installed.

The first option is to install a version of nlp_primitives that does not include Tensorflow. With this option, primitives that depend on Tensorflow cannot be used. Currently, the only primitive that can not be used with this install option is ``UniversalSentenceEncoder``.
Expand Down
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Future Release
* Change `TitleWordCount`, `PunctuationCount`, `UpperCaseCount` to use `CountString` (:pr:`183`)
* Documentation Changes
* Testing Changes
* Change codecov v3 for GitHub workflow (:pr:`184`)

Thanks to the following people for contributing to this release:
:user:`gsheni`, :user:`sbadithe`
Expand Down

0 comments on commit 11837a5

Please sign in to comment.