Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dixudx committed Jul 24, 2022
1 parent d85e9bb commit b6deb0c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
run: python --version
- name: Install dependencies
run: |
pip install -U pip tox
pip install -U pip tox==3.25.0
- name: Lint with flake8
run: |
tox -e flake
- name: Test with pytest
run: tox -e test
run: |
tox -e test
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ the tests using pytest_ with the following command:
virtualenv
source .venv/bin/active
(venv) tox -e py27
(venv) tox -e py35
(venv) tox -e test
(venv) tox -e flake
(venv) tox -e pycodestyle
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PySocks>=1.5.6
jinja2>=2.2
requests>=2.10.0
six
xmltodict
xmltodict<=0.12.0
lxml
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = rtcclient
author = Di Xu
version = 0.8.1
version = 0.8.2
author_email = [email protected]
summary = RTCClient for Rational Team Concert
description_file = README.rst
Expand Down
18 changes: 8 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
[tox]
minversion = 3.18
envlist = py35,py36,py37,py38,py39,py310,pycodestyle
envlist = test,pycodestyle,flake
skipsdist = True

[testenv]
[testenv:test]
description = Invoke pytest to run automated tests
install_command = pip install -U {opts} {packages}
sitepackages = True
setenv =
VIRTUAL_ENV={envdir}
CLIENT_NAME=pbr
TOXINIDIR = {toxinidir}
VIRTUAL_ENV = {envdir}
deps = .
-r{toxinidir}/test-requirements.txt
commands = pytest -v {posargs}

[testenv:test]
description = Run tests with pytest.
commands =
-r{toxinidir}/test-requirements.txt
commands =
pytest -v {posargs}

[testenv:pycodestyle]
Expand Down

0 comments on commit b6deb0c

Please sign in to comment.