mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-21 12:36:02 +03:00
update version matrix (#38)
* update python versions test matrix * fix workflow file * fix missing key tests
This commit is contained in:
parent
f17fbc6801
commit
9429f1574c
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||
|
@ -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
|
||||
|
4
setup.py
4
setup.py
@ -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',
|
||||
]
|
||||
|
@ -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.'})
|
||||
|
@ -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.'})
|
||||
|
@ -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.'})
|
||||
|
Loading…
Reference in New Issue
Block a user