From d2848a71808c44f0a99daa05dc9fd46dce956195 Mon Sep 17 00:00:00 2001 From: Rafael Dohms Date: Tue, 15 Aug 2023 14:54:33 +0200 Subject: [PATCH] Add Tests Setup Transitioning to maintenance mode means we have less people working on this, adding automated tests will help avoid problems. --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ README.MD | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3b81b65 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Run Tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["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: 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 \ No newline at end of file diff --git a/README.MD b/README.MD index 17da6fe..84d18d0 100644 --- a/README.MD +++ b/README.MD @@ -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