mirror of
https://github.com/docling-project/docling-core.git
synced 2026-05-17 13:10:44 +00:00
* use new pyproject.toml format with uv Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update ci/cd scripts Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update MD files Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * build without pre-commit cache Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * run pre-commit from uv Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * small changes Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * add uv package install Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * Apply suggestions from code review Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Signed-off-by: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> * docs: update README Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> Signed-off-by: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com> Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
name: "Run CD"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
# disable keyring (https://github.com/actions/runner-images/issues/6185):
|
|
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
|
|
|
|
jobs:
|
|
code-checks:
|
|
uses: ./.github/workflows/checks.yml
|
|
with:
|
|
push_coverage: false
|
|
pre-release-check:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
TARGET_TAG_V: ${{ steps.version_check.outputs.TRGT_VERSION }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # for fetching tags, required for semantic-release
|
|
- name: Install uv and set the python version
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
- name: Install dependencies
|
|
run: uv sync --only-dev
|
|
- name: Check version of potential release
|
|
id: version_check
|
|
run: |
|
|
TRGT_VERSION=$(uv run --no-sync semantic-release print-version)
|
|
echo "TRGT_VERSION=${TRGT_VERSION}" >> "$GITHUB_OUTPUT"
|
|
echo "${TRGT_VERSION}"
|
|
- name: Check notes of potential release
|
|
run: uv run --no-sync semantic-release changelog --unreleased
|
|
release:
|
|
needs: [code-checks, pre-release-check]
|
|
if: needs.pre-release-check.outputs.TARGET_TAG_V != ''
|
|
environment: auto-release
|
|
runs-on: ubuntu-latest
|
|
concurrency: release
|
|
steps:
|
|
- uses: actions/create-github-app-token@v1
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ vars.CI_APP_ID }}
|
|
private-key: ${{ secrets.CI_PRIVATE_KEY }}
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ steps.app-token.outputs.token }}
|
|
fetch-depth: 0 # for fetching tags, required for semantic-release
|
|
- name: Install uv and set the python version
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
- name: Install dependencies
|
|
run: uv sync --only-dev
|
|
- name: Run release script
|
|
env:
|
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
|
|
CHGLOG_FILE: CHANGELOG.md
|
|
run: ./.github/scripts/release.sh
|
|
shell: bash
|