Skip to content

Commit 4325a32

Browse files
committed
ci: setup ci workflow
1 parent eddf40c commit 4325a32

3 files changed

Lines changed: 39 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.7"]
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -r requirements.txt
28+
python -m pip install -e .[all]
29+
30+
- name: Run tests
31+
run: pytest -ra --cov=tika
32+
33+
- name: Upload coverage to Coveralls
34+
if: success()
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
coveralls

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pyyaml==5.4.1
44
python-coveralls
55
pytest-cov<2.6
66
memory_profiler
7-
beautifulsoup4==4.13.3
7+
beautifulsoup4==4.13.3

0 commit comments

Comments
 (0)