Skip to content

Commit

Permalink
replacing nose with pytest, testing python 3.8-3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroxxTraxxon committed Oct 10, 2023
1 parent 7ba729d commit 1a70b40
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
3 changes: 1 addition & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ exclude_lines =
if __name__ == .__main__.:

ignore_errors = True
omit = orquesta/tests/*

omit =
tests/*
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ def test_init_test_spec_with_mock_action_execution_yml_result_path(self):
def test_init_test_spec_with_base_path(self):
shutil.copy(self.get_wf_file_path("sequential"), "/tmp/sequential.yaml")

fd, path = tempfile.mkstemp(suffix=".json")

fd, path = tempfile.mkstemp(suffix=".json", dir="/tmp")
with os.fdopen(fd, "w") as tmp:
tmp.write('{"foo": "bar"}\n')

Expand Down
4 changes: 1 addition & 3 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Different versions of tox are required by python version
tox-gh-actions
tox==3.28.0 ; python_version == "3.6"
tox==4.6.4 ; python_version == "3.8"
tox==4.11.3 ; python_version == "3.10"
tox==4.11.3
9 changes: 0 additions & 9 deletions requirements-test-py27.txt

This file was deleted.

4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ coverage
flake8<3.9.0,>=3.8.0
hacking
mock>=1.0
nose
nosexcover
pytest
pytest-cov
pep8>=1.6.0,<1.7
pylint>=2.5.2,<2.6
twine
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
[tox]
envlist = py36,py38,pep8,docs
envlist = py38,py39,py310,py311,pep8,docs
minversion = 1.6
skipsdist = True

[gh-actions]
python =
3.6: py36,pep8,docs
3.8: py38
3.8: py38,pep8,docs
3.9: py39
3.10: py310
3.11: py311

[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
nosetests -sv --with-xcoverage --cover-package=orquesta orquesta.tests
pytest --cov=orquesta --cov-report=term orquesta.tests

[testenv:pep8]
deps =
Expand Down

0 comments on commit 1a70b40

Please sign in to comment.