Skip to content

Commit 171c5ff

Browse files
committed
Add github actions
1 parent 3a3b2b4 commit 171c5ff

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
on: [push,pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version:
9+
- 2.7
10+
- 3.4
11+
- 3.5
12+
- 3.6
13+
- 3.7
14+
- 3.8
15+
name: Python ${{ matrix.python-version }} sample
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-python@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- run: pip install -r requirements.txt
22+
- run: pip install -r test-requirements.txt
23+
- run: python setup.py develop
24+
- env:
25+
DETECTLANGUAGE_API_KEY: ${{ secrets.DETECTLANGUAGE_API_KEY }}
26+
run: nosetests

0 commit comments

Comments
 (0)