Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
all-python-ci-jobs-passed:
name: All Python CI jobs passed
needs: [linting, test, mypy, codecov, build-docs, check-version]
if: ${{ always() }}
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Require all CI jobs to succeed
env:
NEEDS: ${{ toJSON(needs) }}
run: jq -e 'all(.[]; .result == "success")' <<<"$NEEDS"

linting:
name: Linting
runs-on: "ubuntu-latest"
Expand All @@ -20,6 +35,8 @@ jobs:
- "3.15"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check and lint python packages
uses: greenbone/actions/lint-python@v3
with:
Expand All @@ -42,6 +59,8 @@ jobs:
- "3.15"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
with:
Expand All @@ -63,6 +82,8 @@ jobs:
- "3.15"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
with:
Expand All @@ -77,6 +98,8 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v3
with:
Expand All @@ -88,6 +111,8 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: greenbone/actions/uv@v3
- name: Build docs
Expand Down