Skip to content

Commit

Permalink
Move UT and linters jobs to Zuul
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Nov 19, 2024
1 parent 7a5582f commit bd811b8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 78 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/linters.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/unittests.yaml

This file was deleted.

14 changes: 8 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,pep8
envlist = py3,linters
skipsdist = True
sitepackages = False
skip_missing_interpreters = True
Expand All @@ -21,15 +21,11 @@ install_commands =
pip install {opts} {packages}


[testenv:py3]
[testenv:{py3,py38,py39,py310}]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}

[testenv:pep8]
commands =
flake8

[testenv:cover]
basepython = python3
deps = -r{toxinidir}/requirements.txt
Expand All @@ -45,6 +41,12 @@ commands =
coverage xml -o cover/coverage.xml
coverage report

[testenv:linters]
skipsdist = True
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure

[testenv:venv]
commands = {posargs}
Expand Down
9 changes: 9 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- job:
name: staffeln-linters
parent: tox-linters

- job:
name: staffeln-unit
parent: tox
vars:
tox_envlist: py3
5 changes: 5 additions & 0 deletions zuul.d/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- project:
check:
jobs:
- staffeln-linters
- staffeln-unit

0 comments on commit bd811b8

Please sign in to comment.