Skip to content

Commit b71cc12

Browse files
committed
build: replace travis with github action
1 parent 6c72329 commit b71cc12

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,30 @@ jobs:
3737
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3838
# exit-zero treats all errors as warnings.
3939
flake8 . --count --exit-zero --statistics
40+
41+
test:
42+
runs-on: ubuntu-latest
43+
strategy:
44+
max-parallel: 1
45+
matrix:
46+
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9']
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Set up Python
50+
uses: actions/setup-python@v2
51+
with:
52+
${{ matrix.python-version }}
53+
- name: Install dependencies
54+
run: |
55+
python -m pip install --upgrade pip
56+
pip install -r requirements.txt
57+
pip install -e .'[test]'
58+
- name: Run tests with ${{ matrix.python-version }}
59+
env:
60+
APP_ID: 8FfQwpvihLHK4htqmtEvkNrv
61+
APP_KEY: eE9tNOcCiWoMHM1phxY41rAz
62+
MASTER_KEY: 75zAjEJSj7lifKQqKSTryae9
63+
USE_REGION: US
64+
run:
65+
nosetests -v --with-coverage --cover-package=leancloud
66+

.travis.yml

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

0 commit comments

Comments
 (0)