From 03c9867c2f94ece9eedeb9c9e3bd159d82f91724 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 10:41:59 +0200 Subject: [PATCH 1/7] workflows: add lint workflow --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..a9c67d7 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Python Lint + +on: + pull_request: + branches: + - main + paths: + - 'src/**' + - 'tox.ini' + - '.github/workflows/lint.yml' + +jobs: + lint: + uses: outpost-os/pipeline-python/.github/workflows/lint.yml@v1 + with: + python-version: '3.10' From b04ef02d31e95b6df4175bf18784465ff5eef02a Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 10:43:48 +0200 Subject: [PATCH 2/7] README: add lint workflow badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5804fb9..4312166 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ SPDX-License-Identifier: Apache-2.0 [![codecov](https://codecov.io/gh/outpost-os/python-svd2json/graph/badge.svg?token=H6VZ47MTRN)](https://codecov.io/gh/outpost-os/python-svd2json) ![build](https://github.com/outpost-os/python-svd2json/actions/workflows/main.yml/badge.svg) - +![lint](https://github.com/outpost-os/python-svd2json/actions/workflows/lint.yml/badge.svg) # Python svd2json package From 615a20d9a6a6cd042886cbf831beb8b582e4d325 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 11:09:36 +0200 Subject: [PATCH 3/7] workflow: add unittest workflow workflow,unittest: fix path filter typo --- .github/workflows/unittest.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/unittest.yml diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml new file mode 100644 index 0000000..b2bc097 --- /dev/null +++ b/.github/workflows/unittest.yml @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Python Unit Tests + +on: + pull_request: + branches: + - main + paths: + - 'src/**' + - 'tests/**' + - 'tox.ini' + - '.github/workflows/unittest.yml' +jobs: + unittest: + strategy: + matrix: + version: ['3.10', '3.11', '3.12'] + uses: outpost-os/pipeline-python/.github/workflows/unittest.yml@v1 + with: + python-version: ${{ matrix.version }} + secrets: inherit From 15acdeefab93f610a740bdea2edec4f91efa40c6 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 11:10:33 +0200 Subject: [PATCH 4/7] workflow: add documentation workflow --- .github/workflows/doc.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/doc.yml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000..52c3bf5 --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Python Doc + +on: + pull_request: + branches: + - main + paths: + - 'doc/**' + - 'tox.ini' + - '.github/workflows/doc.yml' + +jobs: + doc: + uses: outpost-os/pipeline-python/.github/workflows/doc.yml@v1 + with: + python-version: '3.10' From 092c59678d8fa5cba6f18ceef4ec45fe5a2d56e0 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 11:11:13 +0200 Subject: [PATCH 5/7] workflow: add quality workflow --- .github/workflows/quality.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/quality.yml diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 0000000..93f9f87 --- /dev/null +++ b/.github/workflows/quality.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Python Code Quality + +on: + workflow_run: + workflows: [Python Unit Tests] + types: [completed] + +jobs: + codeql: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + permissions: + security-events: write + packages: read + actions: read + contents: read + uses: outpost-os/pipeline-python/.github/workflows/codeql.yml@v1 From 9dc85ec8d5906d6bdf21d6372b63fd45afa21555 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 11:11:43 +0200 Subject: [PATCH 6/7] workflow: remove old main workflow --- .github/workflows/main.yml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index c56aa7b..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,38 +0,0 @@ -# SPDX-FileCopyrightText: 2024 Ledger SAS -# -# SPDX-License-Identifier: Apache-2.0 - -on: - push: - pull_request: - branches: - - main - workflow_dispatch: - -jobs: - ut: - strategy: - matrix: - version: ['3.10', '3.11', '3.12'] - uses: outpost-os/pipeline-python/.github/workflows/unittest.yml@v1 - with: - python-version: ${{ matrix.version }} - secrets: inherit - doc: - uses: outpost-os/pipeline-python/.github/workflows/doc.yml@v1 - with: - python-version: '3.11' - lint: - needs: [ ut, doc ] - if: ${{ github.event_name == 'pull_request' }} - uses: outpost-os/pipeline-python/.github/workflows/lint.yml@v1 - with: - python-version: '3.10' - codeql: - needs: [ ut ] - permissions: - security-events: write - packages: read - actions: read - contents: read - uses: outpost-os/pipeline-python/.github/workflows/codeql.yml@v1 From 9f7125c5a12aa37d257b1004914824ab2cbed995 Mon Sep 17 00:00:00 2001 From: Florent Valette Date: Mon, 15 Jul 2024 11:12:03 +0200 Subject: [PATCH 7/7] README: update workflows badges --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4312166..9c76a80 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,10 @@ SPDX-License-Identifier: Apache-2.0 ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/svd2json) [![codecov](https://codecov.io/gh/outpost-os/python-svd2json/graph/badge.svg?token=H6VZ47MTRN)](https://codecov.io/gh/outpost-os/python-svd2json) -![build](https://github.com/outpost-os/python-svd2json/actions/workflows/main.yml/badge.svg) ![lint](https://github.com/outpost-os/python-svd2json/actions/workflows/lint.yml/badge.svg) +![unittest](https://github.com/outpost-os/python-svd2json/actions/workflows/unittest.yml/badge.svg) +![doc](https://github.com/outpost-os/python-svd2json/actions/workflows/doc.yml/badge.svg) +![quality](https://github.com/outpost-os/python-svd2json/actions/workflows/quality.yml/badge.svg) # Python svd2json package