From 763782b37470b5a4cb008205c24ecef5371d0aa8 Mon Sep 17 00:00:00 2001 From: nemanjamart <72038561+nemanjamart@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:08:42 -0500 Subject: [PATCH 1/4] Add Github Actions, remove Travis Replace Travis CI with GitHub actions --- .github/workflows/python_actions.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/python_actions.yml diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml new file mode 100644 index 0000000..183afe4 --- /dev/null +++ b/.github/workflows/python_actions.yml @@ -0,0 +1,29 @@ +name: GitHub Actions CI + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 2.7 + + - name: Install dependencies + run: | + python -m pip install --upgrade setuptools pip + pip install -U -r requirements.txt + pip install -U -r dev-requirements.txt + python -m nltk.downloader punkt + python -m nltk.downloader averaged_perceptron_tagger + + - name: Test with pytest + run: | + py.test + - run: coveralls From 5e89b0b7a5f958f0f7021a4bb91a95b134d44e9f Mon Sep 17 00:00:00 2001 From: nemanjamart <72038561+nemanjamart@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:20:46 -0500 Subject: [PATCH 2/4] Update python_actions.yml --- .github/workflows/python_actions.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index 183afe4..f0623b0 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -17,9 +17,10 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade setuptools pip - pip install -U -r requirements.txt - pip install -U -r dev-requirements.txt + python -m pip install --upgrade pip + pip install --upgrade setuptools + pip install -r requirements.txt + pip install -r dev-requirements.txt python -m nltk.downloader punkt python -m nltk.downloader averaged_perceptron_tagger From 3a2b05091d8870a84595a2423d3bf38a86d75bb8 Mon Sep 17 00:00:00 2001 From: nemanjamart <72038561+nemanjamart@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:24:58 -0500 Subject: [PATCH 3/4] Add manual numpy install --- .github/workflows/python_actions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index f0623b0..24bc346 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -19,6 +19,7 @@ jobs: run: | python -m pip install --upgrade pip pip install --upgrade setuptools + pip install numpy pip install -r requirements.txt pip install -r dev-requirements.txt python -m nltk.downloader punkt From 40c23910417d45b9bd05b733bb527ce1fb214406 Mon Sep 17 00:00:00 2001 From: nemanjamart <72038561+nemanjamart@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:32:58 -0500 Subject: [PATCH 4/4] Delete .travis.yml --- .travis.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a5adede..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: python - -python: - - "2.7" - -install: - - "pip install --upgrade pip" - - "pip install --upgrade setuptools" - - "pip install -r requirements.txt" - - "pip install -r dev-requirements.txt" - - "python -m nltk.downloader punkt" - - "python -m nltk.downloader averaged_perceptron_tagger" - -script: - - "py.test" - -services: - - redis-server - -after_success: - - "coveralls" - -notifications: - email: false - -sudo: false \ No newline at end of file