Replace poetry with uv #830
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and test | |
| 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: greenbone tests | |
| python-version: ${{ matrix.python-version }} | |
| linter: ruff check --diff | |
| formatter: ruff format --check --diff | |
| test: | |
| name: Run all 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 | |
| codecov: | |
| name: Upload coverage to codecov.io | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install and 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 }} | |
| mypy: | |
| name: Check type information | |
| runs-on: "ubuntu-latest" | |
| 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 |