diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 08:35:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 08:35:51 +0000 |
commit | 641d0d615623d4818993e1967fc96af1eefc4605 (patch) | |
tree | c40f205eb559c8a495489262190a0be4f1829740 /.github | |
parent | Adding upstream version 0.13.0. (diff) | |
download | anta-641d0d615623d4818993e1967fc96af1eefc4605.tar.xz anta-641d0d615623d4818993e1967fc96af1eefc4605.zip |
Adding upstream version 0.14.0.upstream/0.14.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/generate_release.py | 22 | ||||
-rw-r--r-- | .github/workflows/code-testing.yml | 12 | ||||
-rw-r--r-- | .github/workflows/main-doc.yml | 2 |
3 files changed, 17 insertions, 19 deletions
diff --git a/.github/generate_release.py b/.github/generate_release.py index 56b6500..97f139b 100644 --- a/.github/generate_release.py +++ b/.github/generate_release.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -""" -generate_release.py +"""generate_release.py. This script is used to generate the release.yml file as per https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes @@ -20,18 +19,15 @@ CATEGORIES = { "fix": "Bug Fixes", "cut": "Cut", "doc": "Documentation", - # "CI": "CI", "bump": "Bump", - # "test": "Test", "revert": "Revert", "refactor": "Refactoring", } class SafeDumper(yaml.SafeDumper): - """ - Make yamllint happy - https://github.com/yaml/pyyaml/issues/234#issuecomment-765894586 + """Make yamllint happy + https://github.com/yaml/pyyaml/issues/234#issuecomment-765894586. """ # pylint: disable=R0901,W0613,W1113 @@ -60,7 +56,7 @@ if __name__ == "__main__": { "title": "Breaking Changes", "labels": breaking_labels, - } + }, ) # Add new features @@ -71,7 +67,7 @@ if __name__ == "__main__": { "title": "New features and enhancements", "labels": feat_labels, - } + }, ) # Add fixes @@ -82,7 +78,7 @@ if __name__ == "__main__": { "title": "Fixed issues", "labels": fixes_labels, - } + }, ) # Add Documentation @@ -93,7 +89,7 @@ if __name__ == "__main__": { "title": "Documentation", "labels": doc_labels, - } + }, ) # Add the catch all @@ -101,7 +97,7 @@ if __name__ == "__main__": { "title": "Other Changes", "labels": ["*"], - } + }, ) with open(r"release.yml", "w", encoding="utf-8") as release_file: yaml.dump( @@ -109,7 +105,7 @@ if __name__ == "__main__": "changelog": { "exclude": {"labels": exclude_list}, "categories": categories_list, - } + }, }, release_file, Dumper=SafeDumper, diff --git a/.github/workflows/code-testing.yml b/.github/workflows/code-testing.yml index 4d4c0a6..5c06d45 100644 --- a/.github/workflows/code-testing.yml +++ b/.github/workflows/code-testing.yml @@ -23,6 +23,8 @@ jobs: - 'anta/**' - 'tests/*' - 'tests/**' + # detect dependency changes + - 'pyproject.toml' core: - 'anta/*' - 'anta/reporter/*' @@ -44,7 +46,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] needs: file-changes steps: - uses: actions/checkout@v4 @@ -64,7 +66,7 @@ jobs: if: needs.file-changes.outputs.cli == 'true' && needs.file-changes.outputs.docs == 'false' steps: - name: Documentation is missing - uses: GrantBirki/comment@v2.0.9 + uses: GrantBirki/comment@v2.0.10 with: body: | Please consider that documentation is missing under `docs/` folder. @@ -82,7 +84,7 @@ jobs: config_file: .yamllint.yml file_or_dir: . lint-python: - name: Run isort, black, flake8 and pylint + name: Check the code style runs-on: ubuntu-20.04 needs: file-changes if: needs.file-changes.outputs.code == 'true' @@ -97,7 +99,7 @@ jobs: - name: "Run tox linting environment" run: tox -e lint type-python: - name: Run mypy + name: Check typing runs-on: ubuntu-20.04 needs: file-changes if: needs.file-changes.outputs.code == 'true' @@ -117,7 +119,7 @@ jobs: needs: [lint-python, type-python] strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Setup Python diff --git a/.github/workflows/main-doc.yml b/.github/workflows/main-doc.yml index 0d46fa9..81ac382 100644 --- a/.github/workflows/main-doc.yml +++ b/.github/workflows/main-doc.yml @@ -7,9 +7,9 @@ on: - main paths: # Run only if any of the following paths are changed when pushing to main - # May need to update this - "docs/**" - "mkdocs.yml" + - "anta/**" workflow_dispatch: jobs: |