infra: ci naming (#16890)

Make it clearer how to run equivalent commands locally

Not a perfect 1:1, but will help people get started

![Screenshot 2024-02-01 at 10 53
34 AM](https://github.com/langchain-ai/langchain/assets/9557659/da271aaf-d5db-41e3-9379-cb1d8a0232c5)
pull/14007/head^2
Erick Friis 8 months ago committed by GitHub
parent c5b01ac621
commit 5b3fc86cfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,30 +36,35 @@ env:
jobs: jobs:
lint: lint:
name: make lint
uses: ./.github/workflows/_lint.yml uses: ./.github/workflows/_lint.yml
with: with:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}
secrets: inherit secrets: inherit
test: test:
name: make test
uses: ./.github/workflows/_test.yml uses: ./.github/workflows/_test.yml
with: with:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}
secrets: inherit secrets: inherit
compile-integration-tests: compile-integration-tests:
name: poetry run pytest -m compile tests/integration_tests
uses: ./.github/workflows/_compile_integration_test.yml uses: ./.github/workflows/_compile_integration_test.yml
with: with:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}
secrets: inherit secrets: inherit
dependencies: dependencies:
name: check dependencies
uses: ./.github/workflows/_dependencies.yml uses: ./.github/workflows/_dependencies.yml
with: with:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}
secrets: inherit secrets: inherit
extended-tests: extended-tests:
name: make extended_tests / python${{ matrix.python-version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -68,7 +73,6 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
name: Python ${{ matrix.python-version }} extended tests
defaults: defaults:
run: run:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}

@ -24,7 +24,7 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
name: Python ${{ matrix.python-version }} name: python${{ matrix.python-version }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

@ -28,7 +28,7 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
name: dependencies - Python ${{ matrix.python-version }} name: dependency checks / python${{ matrix.python-version }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

@ -21,6 +21,7 @@ env:
jobs: jobs:
build: build:
name: python${{ matrix.python-version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:

@ -28,7 +28,7 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
name: Python ${{ matrix.python-version }} name: python${{ matrix.python-version }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

@ -1,5 +1,5 @@
--- ---
name: Check library diffs name: CI
on: on:
push: push:
@ -32,6 +32,7 @@ jobs:
outputs: outputs:
dirs-to-run: ${{ steps.set-matrix.outputs.dirs-to-run }} dirs-to-run: ${{ steps.set-matrix.outputs.dirs-to-run }}
ci: ci:
name: cd ${{ matrix.working-directory }}
needs: [ build ] needs: [ build ]
strategy: strategy:
matrix: matrix:

@ -1,5 +1,5 @@
--- ---
name: Codespell name: CI / cd . / make spell_check
on: on:
push: push:
@ -12,7 +12,7 @@ permissions:
jobs: jobs:
codespell: codespell:
name: Check for spelling errors name: (Check for spelling errors)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

@ -1,5 +1,5 @@
--- ---
name: Docs, templates, cookbook lint name: CI / cd .
on: on:
push: push:
@ -15,6 +15,7 @@ on:
jobs: jobs:
check: check:
name: Check for "from langchain import x" imports
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -28,6 +29,7 @@ jobs:
git grep 'from langchain import' {docs/docs,templates,cookbook} | grep -vE 'from langchain import (hub)' && exit 1 || exit 0 git grep 'from langchain import' {docs/docs,templates,cookbook} | grep -vE 'from langchain import (hub)' && exit 1 || exit 0
lint: lint:
name: make lint
uses: uses:
./.github/workflows/_lint.yml ./.github/workflows/_lint.yml
with: with:

@ -1,36 +0,0 @@
---
name: templates CI
on:
push:
branches: [ master ]
pull_request:
paths:
- '.github/actions/poetry_setup/action.yml'
- '.github/tools/**'
- '.github/workflows/_lint.yml'
- '.github/workflows/templates_ci.yml'
- 'templates/**'
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
#
# There's no point in testing an outdated version of the code. GitHub only allows
# a limited number of job runners to be active at the same time, so it's better to cancel
# pointless jobs early so that more useful jobs can run sooner.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.7.1"
WORKDIR: "templates"
jobs:
lint:
uses:
./.github/workflows/_lint.yml
with:
working-directory: templates
secrets: inherit
Loading…
Cancel
Save