Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ updates:
interval: "weekly"
commit-message:
prefix: "Deps"
groups:
github-actions:
patterns:
- "*"
5 changes: 3 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Auto-merge squash

on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
uses: greenbone/workflows/.github/workflows/auto-merge.yml@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
jobs:
changelog:
name: Show changelog since last release
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # for conventional commits and getting all git tags
persist-credentials: false
Expand Down
54 changes: 32 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
linting:
name: Linting
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
Expand All @@ -17,14 +18,19 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
uses: greenbone/workflows/.github/workflows/lint-python.yml@main
with:
lint-packages: gvm tests
python-version: ${{ matrix.python-version }}
linter: ruff check
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Check and lint python packages
uses: greenbone/actions/lint-python@v3
with:
package-manager: uv
packages: gvm tests
python-version: ${{ matrix.python-version }}
linter: ruff check

test:
name: Run tests
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
Expand All @@ -33,9 +39,15 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
uses: greenbone/workflows/.github/workflows/test-python.yml@main
with:
python-version: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run unit test
run: |
uv run python -m unittest -v

mypy:
name: Check type hints
Expand All @@ -49,36 +61,34 @@ jobs:
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v6
- name: Run mypy
uses: greenbone/actions/mypy-python@v3
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run mypy
run: |
uv run mypy

codecov:
name: Upload coverage to codecov.io
needs: test
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v3
with:
python-version: "3.10"
package-manager: uv
token: ${{ secrets.CODECOV_TOKEN }}

build-docs:
name: Build the documentation
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- name: Install poetry and dependencies
uses: greenbone/actions/poetry@v3
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
- name: Build docs
run: |
cd docs
poetry run make html

versioning:
name: Check versioning
uses: greenbone/workflows/.github/workflows/check-version.yml@main
cd docs && uv run make html
8 changes: 5 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: "CodeQL"

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main
paths-ignore:
- "**/*.md"
- "**/*.txt"
Expand All @@ -27,7 +29,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Dependency Review'
on: [pull_request]
name: "Dependency Review"
on: pull_request

permissions:
contents: read
Expand All @@ -9,5 +9,5 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Dependency Review'
- name: "Dependency Review"
uses: greenbone/actions/dependency-review@v3
3 changes: 2 additions & 1 deletion .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Deploy on PyPI

on:
release:
types: [created]
types:
- created

jobs:
deploy:
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,22 @@ concurrency:

jobs:
deploy:
uses: greenbone/workflows/.github/workflows/docs-python.yml@main
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: greenbone/actions/uv@v3
- name: Build Documentation
run: |
cd docs && uv run make html
- name: Upload artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: docs/build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Release python-gvm

on:
pull_request:
types: [closed]
types:
- closed
workflow_dispatch:
inputs:
release-type:
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
with:
release-type-input: ${{ inputs.release-type }}
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # for conventional commits and getting all git tags
persist-credentials: false
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/sbom-upload.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: SBOM upload

on:
workflow_dispatch:
push:
branches: ["main"]
branches:
- main

jobs:
SBOM-upload:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: 'SBOM upload'
- name: "SBOM upload"
uses: greenbone/actions/sbom-upload@v3
Loading
Loading