diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml deleted file mode 100644 index 16c9b58b4..000000000 --- a/.github/workflows/code-checks.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Code Checks - -on: - push: - branches: [ "main", "dev" ] - pull_request: - branches: [ "main", "dev" ] - -jobs: - format: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run formatter - run: poetry run ruff format --check . - type-check: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [ "3.12" ] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run type checker - run: poetry run pyright griptape/ - lint: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [ "3.12" ] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run linter - run: poetry run ruff check griptape/ - coverage: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run unit tests - run: pytest -n auto --cov=griptape tests/unit - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - flags: smart-tests - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/docs-integration-tests.yml b/.github/workflows/docs-integration-tests.yml index ed2720917..4d4ad5806 100644 --- a/.github/workflows/docs-integration-tests.yml +++ b/.github/workflows/docs-integration-tests.yml @@ -1,15 +1,13 @@ name: Docs Integration Tests on: - pull_request_review: - types: [submitted] push: - branches: - - main - - dev + branches: [ "main", "dev" ] + pull_request: + branches: [ "main", "dev" ] + jobs: test: - if: github.event.review.state == 'APPROVED' || github.event_name == 'push' runs-on: ubuntu-latest strategy: fail-fast: false @@ -129,7 +127,6 @@ jobs: - name: Get changed files id: changed-files uses: tj-actions/changed-files@v44 - if: github.event_name == 'pull_request_review' with: files: | **.md diff --git a/.github/workflows/pull-request-links.yml b/.github/workflows/pull-request-links.yml deleted file mode 100644 index 0d937ac94..000000000 --- a/.github/workflows/pull-request-links.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Read the Docs Preview -on: - pull_request_target: - types: - - opened - paths: - - "docs/**" - -permissions: - pull-requests: write - -jobs: - pull-request-links: - runs-on: ubuntu-latest - steps: - - uses: readthedocs/actions/preview@v1 - with: - project-slug: ${{ secrets.READTHEDOCS_PROJECT_SLUG }} - single-version: 'false' - project-language: "" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml deleted file mode 100644 index 8c8b4cc56..000000000 --- a/.github/workflows/unit-tests.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Unit Tests - -on: - push: - branches: [ "main", "dev" ] - pull_request: - branches: [ "main", "dev" ] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run unit tests - run: pytest -n auto tests/unit diff --git a/docs/griptape-framework/drivers/prompt-drivers.md b/docs/griptape-framework/drivers/prompt-drivers.md index b16fd57be..bb19e2bad 100644 --- a/docs/griptape-framework/drivers/prompt-drivers.md +++ b/docs/griptape-framework/drivers/prompt-drivers.md @@ -358,7 +358,7 @@ def prompt_stack_to_string_converter(prompt_stack: PromptStack) -> str: agent = Agent( config=StructureConfig( prompt_driver=HuggingFacePipelinePromptDriver( - model="tiiuae/falcon-7b-instruct", + model="tiiuae/falcon-7b-instruct", #og prompt_stack_to_string=prompt_stack_to_string_converter, ) ),