Skip to content

Commit bb40762

Browse files
committed
Add Tests Setup
Transitioning to maintenance mode means we have less people working on this, adding automated tests will help avoid problems.
1 parent fbe9f3d commit bb40762

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Display Python version
20+
run: python -c "import sys; print(sys.version)"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
- name: Run Tests
26+
run: |
27+
python tests.py

README.MD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ For more information on resources, authorization and available API calls, please
3333

3434
## Installation:
3535

36-
Requires Python 2.7
36+
Requires Python 3.
37+
Support for Python 2.7 is expected but not tested or validated.
3738

3839
```bash
3940
pip install usabilla-api

0 commit comments

Comments
 (0)