Skip to content
Merged
Show file tree
Hide file tree
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
23 changes: 0 additions & 23 deletions .github/actions/setup-python-env/action.yml

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,11 @@ on:
secrets:
token:
required: true
inputs:
folder_path:
description: 'The folder path to run actions in'
required: true
type: string

jobs:
build:
name: Build and publish
if: github.ref == 'refs/heads/main'
runs-on: "ubuntu-24.04"
defaults:
run:
working-directory: ${{ inputs.folder_path }}


steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +29,17 @@ jobs:
run: |
uv build

- name: Check if version in pyproject.toml was modified
id: check_version
run: |
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep -q 'pyproject.toml'; then
echo "modified=true" >> $GITHUB_OUTPUT
else
echo "modified=false" >> $GITHUB_OUTPUT
fi

- name: "Publish"
if: ${{ steps.check_version.outputs.modified }} == 'true'
run: |
uv publish
env:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CD

on:
workflow_run:
workflows: ["Core CI"]
types:
- completed

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' }}
uses: ./.github/workflows/build.yml
secrets:
token: ${{ secrets.PYPI_TOKEN }}
18 changes: 1 addition & 17 deletions .github/workflows/langchain_ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
name: Langchain CI
name: Core CI

on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "src/**"
pull_request:
branches:
- main
paths:
- "src/**"


jobs:
lint:
uses: ./.github/workflows/lint.yml
with:
folder_path: "."

test:
uses: ./.github/workflows/test.yml
with:
folder_path: "."
secrets:
UIPATH_URL: ${{ secrets.UIPATH_URL }}
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}

build:
needs: [lint, test]
uses: ./.github/workflows/build.yml
with:
folder_path: "."
secrets:
token: ${{ secrets.PYPI_TOKEN }}
7 changes: 0 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Reusable Lint Workflow
on:
workflow_call:
inputs:
folder_path:
description: 'The folder path to run actions in'
required: true
type: string
should_skip:
description: 'Whether to skip the linting step'
required: false
Expand All @@ -18,9 +14,6 @@ jobs:
name: Lint
runs-on: "ubuntu-24.04"
if: inputs.should_skip == false
defaults:
run:
working-directory: ${{ inputs.folder_path }}


steps:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
UIPATH_CLIENT_SECRET:
required: true
inputs:
folder_path:
description: 'The folder path to run actions in'
required: true
type: string
should_skip:
description: 'Whether to skip the linting step'
required: false
Expand All @@ -25,9 +21,6 @@ jobs:
name: Test
runs-on: "ubuntu-24.04"
if: inputs.should_skip == false
defaults:
run:
working-directory: ${{ inputs.folder_path }}

steps:
- uses: actions/checkout@v4
Expand Down
Loading