| 1 |
name: Build and test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
pull_request: |
| 8 |
|
| 9 |
jobs: |
| 10 |
linting: |
| 11 |
name: Linting |
| 12 |
strategy: |
| 13 |
matrix: |
| 14 |
python-version: |
| 15 |
- "3.9" |
| 16 |
- "3.10" |
| 17 |
- "3.11" |
| 18 |
- "3.12" |
| 19 |
uses: greenbone/workflows/.github/workflows/lint-python.yml@main |
| 20 |
with: |
| 21 |
lint-packages: "greenbone tests" |
| 22 |
linter: ruff check |
| 23 |
python-version: ${{ matrix.python-version }} |
| 24 |
|
| 25 |
test: |
| 26 |
name: Run all tests |
| 27 |
strategy: |
| 28 |
matrix: |
| 29 |
python-version: |
| 30 |
- "3.9" |
| 31 |
- "3.10" |
| 32 |
- "3.11" |
| 33 |
- "3.12" |
| 34 |
uses: greenbone/workflows/.github/workflows/test-python.yml@main |
| 35 |
with: |
| 36 |
python-version: ${{ matrix.python-version }} |
| 37 |
|
| 38 |
codecov: |
| 39 |
name: Upload coverage to codecov.io |
| 40 |
runs-on: "ubuntu-latest" |
| 41 |
steps: |
| 42 |
- uses: actions/checkout@v5 |
| 43 |
- name: Install and calculate and upload coverage to codecov.io |
| 44 |
uses: greenbone/actions/coverage-python@v3 |
| 45 |
with: |
| 46 |
python-version: "3.10" |
| 47 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 48 |
|
| 49 |
mypy: |
| 50 |
name: Check type information |
| 51 |
uses: greenbone/workflows/.github/workflows/typing-python.yml@main |
| 52 |
|
| 53 |
versioning: |
| 54 |
name: Check versioning |
| 55 |
uses: greenbone/workflows/.github/workflows/check-version.yml@main |