Skip to content

Update dependencies to latest releases #605

Update dependencies to latest releases

Update dependencies to latest releases #605

Workflow file for this run

name: Test and Lint
on:
push:
branches:
- main
pull_request:
jobs:
linting:
name: Linting
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
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 --diff
formatter: ruff format --check --diff
test:
name: Run tests
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
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
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
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 mypy
run: |
uv run mypy
codecov:
name: Upload coverage to codecov.io
needs: test
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v3
with:
package-manager: uv
token: ${{ secrets.CODECOV_TOKEN }}
build-docs:
name: Build the documentation
runs-on: "ubuntu-latest"
steps:
- 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 && uv run make html
check-version:
name: Check versioning for consistency
runs-on: "ubuntu-latest"
steps:
- uses: greenbone/actions/check-version@v3