Skip to content

Commit

Permalink
Merge pull request #42 from lordtachen/multitox-multiinstall
Browse files Browse the repository at this point in the history
Run tox with multiple version of python3
  • Loading branch information
pmpbaptista authored Jan 10, 2024
2 parents 42ccf64 + aa8cccb commit b60c388
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: |
3.8
3.9
3.10
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zuulcilint"
version = "0.2.3"
version = "0.2.4"
description = "Zuul CI linter"
authors = ["Pedro Baptista <pedro.miguel.baptista@gmail.com>"]
license = "MIT"
Expand Down
11 changes: 4 additions & 7 deletions zuulcilint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@ def get_zuul_yaml_files(path: pathlib.Path) -> dict[str, list[pathlib.Path]]:
zuul_yaml_files = defaultdict(list)

if(path.is_file()):
match path.suffix:
case ".yaml":
zuul_yaml_files["good_yaml"].append(path)
case ".yml":
zuul_yaml_files["bad_yaml"].append(path)
case _:
pass
if path.suffix == ".yaml":
zuul_yaml_files["good_yaml"].append(path)
elif path.suffix == ".yml":
zuul_yaml_files["bad_yaml"].append(path)
elif(path.is_dir()):
for p in path.iterdir():
for file_type, yaml_file_path in get_zuul_yaml_files(p).items():
Expand Down

0 comments on commit b60c388

Please sign in to comment.