Skip to content

Commit f51b5ff

Browse files
authored
Merge pull request #16 from SamEdwardes/readme-and-pytest
GitHub actions pytest
2 parents 3ea8842 + 237c837 commit f51b5ff

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: pytest
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ["3.6", "3.7", "3.8", "3.9"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install python dependencies
28+
run: |
29+
curl -sSL https://install.python-poetry.org | python3 -
30+
poetry export --without-hashes --output requirements.txt
31+
python -m pip install --upgrade pip
32+
pip install wheel
33+
pip install -r requirements.txt
34+
python -m textblob.download_corpora
35+
python -m spacy download en_core_web_sm
36+
pip install pytest
37+
- name: Test with pytest
38+
run: |
39+
pytest
File renamed without changes.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# spaCyTextBlob <a href='https://spacytextblob.netlify.app/'><img src='website/static/img/logo-thumb-circle-250x250.png' align="right" height="139" /></a>
22

3+
[![PyPI version](https://badge.fury.io/py/spacytextblob.svg)](https://badge.fury.io/py/spacytextblob)
4+
[![pytest](https://github.com/SamEdwardes/spaCyTextBlob/actions/workflows/pytest.yml/badge.svg)](https://github.com/SamEdwardes/spaCyTextBlob/actions/workflows/pytest.yml)
5+
![PyPI - Downloads](https://img.shields.io/pypi/dm/spacytextblob?label=PyPi%20Downloads)
6+
[![Netlify Status](https://api.netlify.com/api/v1/badges/e2f2caac-7239-45a2-b145-a00205c3befb/deploy-status)](https://app.netlify.com/sites/spacytextblob/deploys)
7+
8+
39
A TextBlob sentiment analysis pipeline compponent for spaCy.
410

511
Version 3.0 is a major version update providing support for spaCy 3.0's new interface for adding pipeline components. As a result, it is not backwards compatible with previous versions of spaCyTextBlob. For compatability with spaCy 2.0 please use `pip install spacytextblob==0.1.7`.

0 commit comments

Comments
 (0)