update version matrix (#38)

* update python versions test matrix
* fix workflow file
* fix missing key tests
This commit is contained in:
Alex Lushpai 2024-05-24 22:19:21 +03:00 committed by GitHub
parent f17fbc6801
commit 9429f1574c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 10 additions and 11 deletions

View File

@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: ['3.8', '3.9', '3.10', '3.11']
include:
- python-version: '3.9'
- python-version: '3.12'
coverage: 1
steps:
- uses: actions/checkout@v2
@ -51,13 +51,13 @@ jobs:
env:
COVERAGE: ${{ matrix.coverage }}
if: env.COVERAGE != 1
run: nosetests -v
run: python -m unittest tests/*.py
- name: Tests with coverage
env:
COVERAGE: ${{ matrix.coverage }}
if: env.COVERAGE == 1
run: |
nosetests -v --with-coverage --cover-xml
coverage run -m unittest tests/*.py
- name: Coverage
env:
COVERAGE: ${{ matrix.coverage }}

View File

@ -1,6 +1,6 @@
multidimensional-urlencode==0.0.4
nose==1.3.7
requests==2.32.0
requests==2.32.1
coverage==4.5.4
pook==1.0.1
setuptools==65.5.1
pook==1.3.0
setuptools==70.0.0

View File

@ -34,9 +34,11 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
]

View File

@ -168,7 +168,6 @@ class TestVersion3(unittest.TestCase):
"""
(pook.get(os.getenv('RETAILCRM_URL') + '/api/v3/statistic/update')
.headers({'X-API-KEY': None})
.reply(200)
.headers(self.__header)
.json({'errorMsg': '"apiKey" is missing.'})

View File

@ -164,7 +164,6 @@ class TestVersion4(unittest.TestCase):
"""
(pook.get(os.getenv('RETAILCRM_URL') + '/api/v4/statistic/update')
.headers({'X-API-KEY': None})
.reply(200)
.headers(self.__header)
.json({'errorMsg': '"apiKey" is missing.'})

View File

@ -245,7 +245,6 @@ class TestVersion5(unittest.TestCase):
"""
(pook.get(os.getenv('RETAILCRM_URL') + '/api/v5/statistic/update')
.headers({'X-API-KEY': None})
.reply(200)
.headers(self.__header)
.json({'errorMsg': '"apiKey" is missing.'})