Skip to content

Commit 910dce4

Browse files
committed
test workflow
1 parent 13fd355 commit 910dce4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/unittest.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Unit test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
unit_test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
python-version: [3.6, 3.7, 3.8, 3.9]
12+
13+
env:
14+
IP_GEOLOCATION_API_KEY: ${{ secrets.API_KEY }}
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install dependencies, and python_core module
20+
run: |
21+
pip3 install -r requirements.txt
22+
python setup.py install --user
23+
24+
- name: Run test
25+
run: |
26+
python3 -m unittest tests/test_python_ip_geolocation.py

0 commit comments

Comments
 (0)