diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cb6d3de --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v5 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + python -m pip install -e .[all] + + - name: Run tests + run: pytest -ra --cov=tika + + - name: Upload coverage to Coveralls + if: success() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + coveralls diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cf18ca7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python - -python: - - "2.7" - - "3.4" - - "3.5" - - "3.7" - -install: - - "travis_retry pip install -r requirements.txt" - - "travis_retry pip install -e .[all]" - -script: py.test --cov=tika - -after_success: coveralls