Skip to content

Commit

Permalink
Add zuul support
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Nov 19, 2024
1 parent 3114c64 commit c79be0c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/linters.yaml

This file was deleted.

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


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

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

[testenv:cover]
basepython = python3
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 c79be0c

Please sign in to comment.