99jobs :
1010 linting :
1111 name : Linting
12+ runs-on : " ubuntu-latest"
1213 strategy :
1314 matrix :
1415 python-version :
@@ -17,14 +18,19 @@ jobs:
1718 - " 3.11"
1819 - " 3.12"
1920 - " 3.13"
20- uses : greenbone/workflows/.github/workflows/lint-python.yml@main
21- with :
22- lint-packages : gvm tests
23- python-version : ${{ matrix.python-version }}
24- linter : ruff check
21+ steps :
22+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+ - name : Check and lint python packages
24+ uses : greenbone/actions/lint-python@v3
25+ with :
26+ package-manager : uv
27+ packages : gvm tests
28+ python-version : ${{ matrix.python-version }}
29+ linter : ruff check
2530
2631 test :
2732 name : Run tests
33+ runs-on : " ubuntu-latest"
2834 strategy :
2935 matrix :
3036 python-version :
3339 - " 3.11"
3440 - " 3.12"
3541 - " 3.13"
36- uses : greenbone/workflows/.github/workflows/test-python.yml@main
37- with :
38- python-version : ${{ matrix.python-version }}
42+ steps :
43+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44+ - name : Set up Python ${{ matrix.python-version }}
45+ uses : greenbone/actions/uv@v3
46+ with :
47+ python-version : ${{ matrix.python-version }}
48+ - name : Run unit test
49+ run : |
50+ uv run python -m unittest -v
3951
4052 mypy :
4153 name : Check type hints
@@ -49,36 +61,34 @@ jobs:
4961 - " 3.12"
5062 - " 3.13"
5163 steps :
52- - uses : actions/checkout@v6
53- - name : Run mypy
54- uses : greenbone/actions/mypy-python @v3
64+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
65+ - name : Set up Python ${{ matrix.python-version }}
66+ uses : greenbone/actions/uv @v3
5567 with :
5668 python-version : ${{ matrix.python-version }}
69+ - name : Run mypy
70+ run : |
71+ uv run mypy
5772
5873 codecov :
5974 name : Upload coverage to codecov.io
6075 needs : test
6176 runs-on : " ubuntu-latest"
6277 steps :
63- - uses : actions/checkout@v6
78+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6479 - name : Calculate and upload coverage to codecov.io
6580 uses : greenbone/actions/coverage-python@v3
6681 with :
67- python-version : " 3.10 "
82+ package-manager : uv
6883 token : ${{ secrets.CODECOV_TOKEN }}
6984
7085 build-docs :
7186 name : Build the documentation
7287 runs-on : " ubuntu-latest"
7388 steps :
74- - uses : actions/checkout@v6
75- - name : Install poetry and dependencies
76- uses : greenbone/actions/poetry @v3
89+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
90+ - name : Set up Python ${{ matrix.python-version }}
91+ uses : greenbone/actions/uv @v3
7792 - name : Build docs
7893 run : |
79- cd docs
80- poetry run make html
81-
82- versioning :
83- name : Check versioning
84- uses : greenbone/workflows/.github/workflows/check-version.yml@main
94+ cd docs && uv run make html
0 commit comments