Skip to content

Commit

Permalink
BLD: Use GitHub Actions for linting and unittests
Browse files Browse the repository at this point in the history
Remove TravisCI
  • Loading branch information
jaidevd committed Sep 26, 2024
1 parent e78e248 commit 4c56149
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 39 deletions.
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

0 comments on commit 4c56149

Please sign in to comment.