Skip to content

Commit

Permalink
Unpin test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed May 3, 2022
1 parent 72652c7 commit 35e19d4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
@@ -1,13 +1,17 @@
name: tests

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'

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

steps:
- uses: actions/checkout@v2
Expand All @@ -19,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
if [[ "${{ matrix.python-version}}" == "3.6" ]] || [[ "${{ matrix.python-version }}" == "3.7" ]] ; then pip install asynctest==0.13.0 ; fi
if [[ "${{ matrix.python-version }}" == "3.7" ]] ; then pip install asynctest==0.13.0 ; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
1 change: 0 additions & 1 deletion README.rst
Expand Up @@ -13,7 +13,6 @@ This is a compact and simple JSON-RPC websocket client implementation for asynci
Main Features
-------------

* Python 3.6, 3.7, 3.8 & 3.9 compatible
* Supports nested namespaces (eg. `app.users.getUsers()`)
* 100% test coverage

Expand Down
16 changes: 8 additions & 8 deletions requirements-test.txt
@@ -1,10 +1,10 @@
flake8==3.7.8
coverage==5.5
coveralls==3.0.1
flake8>=3.7.8
coverage>=5.5
coveralls>=3.0.1
jsonrpc-base>=2.1.0
aiohttp>=3.0.0
pytest-aiohttp==0.3.0
pytest==6.2.2
pytest-cov==2.11.1
pytest-asyncio==0.14.0
tox==3.23.0
pytest-aiohttp>=0.3.0
pytest>=6.2.2
pytest-cov>=2.11.1
pytest-asyncio>=0.14.0
tox>=3.23.0
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -29,10 +29,10 @@
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],

)
13 changes: 6 additions & 7 deletions tox.ini
@@ -1,9 +1,9 @@
[tox]
envlist =
py36,
py37,
py38,
py39,
py310,
flake8,

[testenv]
Expand All @@ -14,12 +14,6 @@ commands =
deps =
-r{toxinidir}/requirements-test.txt

[testenv:py36]
basepython = python3.6
deps =
{[testenv]deps}
asynctest==0.13.0

[testenv:py37]
basepython = python3.7
deps =
Expand All @@ -36,6 +30,11 @@ basepython = python3.9
deps =
{[testenv]deps}

[testenv:py310]
basepython = python3.10
deps =
{[testenv]deps}

[testenv:flake8]
basepython = python
commands = flake8 jsonrpc_websocket tests.py

0 comments on commit 35e19d4

Please sign in to comment.