Skip to content

Commit

Permalink
Add Tests Setup
Browse files Browse the repository at this point in the history
Transitioning to maintenance mode means we have less people working on
this, adding automated tests will help avoid problems.
  • Loading branch information
rdohms committed Aug 15, 2023
1 parent fbe9f3d commit bb40762
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Tests
run: |
python tests.py
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ For more information on resources, authorization and available API calls, please

## Installation:

Requires Python 2.7
Requires Python 3.
Support for Python 2.7 is expected but not tested or validated.

```bash
pip install usabilla-api
Expand Down

0 comments on commit bb40762

Please sign in to comment.