From b5cf8a235daefded71df3d7426170930f11b6be1 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 15 Jun 2021 02:29:25 +0530 Subject: [PATCH 1/3] Add github test workflow and remove travis --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ .travis.yml | 29 ----------------------------- 2 files changed, 23 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100755 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5ad8c68 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: camelot + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install camelot with dependencies + run: | + make install + - name: Test with pytest + run: | + make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index e370649..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -sudo: true -language: python -cache: pip -addons: - apt: - update: true -install: - - make install -jobs: - include: - - stage: test - script: - - make test - python: '3.6' - - stage: test - script: - - make test - python: '3.7' - dist: xenial - - stage: test - script: - - make test - python: '3.8' - dist: xenial - - stage: coverage - python: '3.8' - script: - - make test - - codecov --verbose From 0c9504e1bc4a905572642855f40fadbe16e4e007 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 15 Jun 2021 02:36:18 +0530 Subject: [PATCH 2/3] Fix workflow and job names --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ad8c68..350c136 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,9 @@ -name: camelot +name: build on: [pull_request] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: From cf954a7f6d733377c3c53118a82002d02eec15ac Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Tue, 15 Jun 2021 02:41:20 +0530 Subject: [PATCH 3/3] Rename file and fix badge --- .github/workflows/{test.yml => tests.yml} | 2 +- README.md | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) rename .github/workflows/{test.yml => tests.yml} (97%) diff --git a/.github/workflows/test.yml b/.github/workflows/tests.yml similarity index 97% rename from .github/workflows/test.yml rename to .github/workflows/tests.yml index 350c136..09254e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: build +name: tests on: [pull_request] diff --git a/README.md b/README.md index 8324b9f..a3f7f88 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -

+tests

# Camelot: PDF Table Extraction for Humans -[![Build Status](https://travis-ci.org/camelot-dev/camelot.svg?branch=master)](https://travis-ci.org/camelot-dev/camelot) [![Documentation Status](https://readthedocs.org/projects/camelot-py/badge/?version=master)](https://camelot-py.readthedocs.io/en/master/) +![Build Status](https://github.com/camelot-dev/camelot/actions/workflows/tests.yml/badge.svg) [![Documentation Status](https://readthedocs.org/projects/camelot-py/badge/?version=master)](https://camelot-py.readthedocs.io/en/master/) [![codecov.io](https://codecov.io/github/camelot-dev/camelot/badge.svg?branch=master&service=github)](https://codecov.io/github/camelot-dev/camelot?branch=master) [![image](https://img.shields.io/pypi/v/camelot-py.svg)](https://pypi.org/project/camelot-py/) [![image](https://img.shields.io/pypi/l/camelot-py.svg)](https://pypi.org/project/camelot-py/) [![image](https://img.shields.io/pypi/pyversions/camelot-py.svg)](https://pypi.org/project/camelot-py/) [![Gitter chat](https://badges.gitter.im/camelot-dev/Lobby.png)](https://gitter.im/camelot-dev/Lobby) -[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) [![image](https://img.shields.io/badge/continous%20quality-deepsource-lightgrey)](https://deepsource.io/gh/camelot-dev/camelot/?ref=repository-badge) - +[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) **Camelot** is a Python library that can help you extract tables from PDFs!