Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD: Use GitHub Actions for linting and unittests #27

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip pytest spacy coverage flake8
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download en_core_web_lg
- name: Lint with flake8
run: |
flake8 .
- name: unittests
run: |
coverage run -m pytest
coverage report -m
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

15 changes: 2 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
|Build Status|

numerizer
=========

A Python module to convert natural language numerics into ints and floats.
This is a port of the Ruby gem `numerizer
<https://github.com/jduff/numerizer.git>`_

Numerizer has been tested on Python 3.9, 3.10 and 3.11.

Installation
------------

Expand All @@ -16,14 +16,6 @@ The numerizer library can be installed from PyPI as follows:

$ pip install numerizer

or from source as follows:

.. code:: bash

$ git clone https://github.com/jaidevd/numerizer.git
$ cd numerizer
$ pip install -e .

Usage
-----

Expand Down Expand Up @@ -91,6 +83,3 @@ Extras
------

For R users, a wrapper library has been developed by `@amrrs <https://github.com/amrrs>`_. Try it out `here <https://github.com/amrrs/numerizer.git>`_.

.. |Build Status| image:: https://app.travis-ci.com/jaidevd/numerizer.svg?branch=master
:target: https://app.travis-ci.com/jaidevd/numerizer
Loading