99jobs :
1010 linting :
1111 name : Linting
12+ runs-on : " ubuntu-latest"
1213 strategy :
1314 matrix :
1415 python-version :
1516 - " 3.9"
1617 - " 3.10"
1718 - " 3.11"
1819 - " 3.12"
19- uses : greenbone/workflows/.github/workflows/lint-python.yml@main
20- with :
21- linter : ruff check
22- lint-packages : gvmtools tests
23- python-version : ${{ matrix.python-version }}
20+ steps :
21+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+ - name : Check and lint python packages
23+ uses : greenbone/actions/lint-python@v3
24+ with :
25+ package-manager : uv
26+ packages : gvmtools tests
27+ python-version : ${{ matrix.python-version }}
28+ linter : ruff check
2429
2530 lint-scripts :
2631 name : Lint all scripts
@@ -33,55 +38,60 @@ jobs:
3338 - " 3.11"
3439 - " 3.12"
3540 steps :
36- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2 .2
41+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
3742 - name : Set up Python ${{ matrix.python-version }}
38- uses : greenbone/actions/poetry @v3
43+ uses : greenbone/actions/uv @v3
3944 with :
4045 python-version : ${{ matrix.python-version }}
46+ - name : Install dependencies
47+ run : uv sync
4148 - name : Install additional script dependencies
42- run : poetry run pip install -r scripts/requirements.txt
49+ run : uv pip install -r scripts/requirements.txt
4350 - name : Check with black
44- run : poetry run black --check scripts/*.gmp.py
51+ run : uv run black --check scripts/*.gmp.py
4552 - name : Lint scripts
4653 run : |
47- poetry run ruff check --config scripts/ruff.toml scripts/*.py
54+ uv run ruff check --config scripts/ruff.toml scripts/*.py
4855
4956 test :
5057 name : Unit tests
58+ runs-on : " ubuntu-latest"
5159 strategy :
5260 matrix :
5361 python-version :
5462 - " 3.9"
5563 - " 3.10"
5664 - " 3.11"
5765 - " 3.12"
58- uses : greenbone/workflows/.github/workflows/test-python.yml@main
59- with :
60- python-version : ${{ matrix.python-version }}
66+ steps :
67+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
68+ - name : Set up Python ${{ matrix.python-version }}
69+ uses : greenbone/actions/uv@v3
70+ with :
71+ python-version : ${{ matrix.python-version }}
72+ - name : Run unit test
73+ run : |
74+ uv run python -m unittest -v
6175
6276 codecov :
6377 name : Upload coverage to codecov.io
6478 needs : test
6579 runs-on : " ubuntu-latest"
6680 steps :
67- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2 .2
81+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
6882 - name : Calculate and upload coverage to codecov.io
6983 uses : greenbone/actions/coverage-python@v3
7084 with :
7185 token : ${{ secrets.CODECOV_TOKEN }}
86+ package-manager : uv
7287
7388 build-docs :
7489 name : Build the documentation
7590 runs-on : " ubuntu-latest"
7691 steps :
77- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2 .2
78- - name : Install poetry and dependencies
79- uses : greenbone/actions/poetry @v3
92+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0 .2
93+ - name : Set up Python
94+ uses : greenbone/actions/uv @v3
8095 - name : Build docs
8196 run : |
82- cd docs
83- poetry run make html
84-
85- versioning :
86- name : Check versioning
87- uses : greenbone/workflows/.github/workflows/check-version.yml@main
97+ cd docs && uv run make html
0 commit comments