diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index b3fb142..e1b3271 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -24,7 +24,7 @@ jobs: uses: greenbone/actions/poetry@v2 with: python-version: ${{ matrix.python-version }} - cache: true + cache: "true" - name: Check with black run: poetry run black --check --diff autohooks - name: Check with flake8 @@ -32,7 +32,6 @@ jobs: type-checking: name: Type-checker - runs-on: 'ubuntu-latest' strategy: matrix: python-version: @@ -41,16 +40,12 @@ jobs: - "3.9" - "3.10" - "3.11" - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: greenbone/actions/mypy-python@v2 - with: - python-version: ${{ matrix.python-version }} + uses: greenbone/workflows/.github/workflows/typing-python.yml@main + with: + python-version: ${{ matrix.python-version }} test: name: Run all tests - runs-on: 'ubuntu-latest' strategy: matrix: python-version: @@ -59,14 +54,9 @@ jobs: - "3.9" - "3.10" - "3.11" - steps: - - uses: actions/checkout@v3 - - name: Install poetry and dependencies - uses: greenbone/actions/poetry@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Run unit tests - run: poetry run python -m unittest + uses: greenbone/workflows/.github/workflows/test-python.yml@main + with: + python-version: ${{ matrix.python-version }} codecov: name: Upload coverage to codecov.io @@ -78,3 +68,7 @@ jobs: uses: greenbone/actions/coverage-python@v2 with: python-version: "3.10" + + check-version: + name: Check versioning for consistency + uses: greenbone/workflows/.github/workflows/check-version.yml@main