Skip to content

Commit

Permalink
draft prebuild workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 26, 2024
1 parent 6ae844f commit 185b453
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pre-build checks

on:
push:
branches: [ ci ]
pull_request:
branches: [ ci ]

jobs:
lint_check:
name: Lint the code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and run Dev Container task
uses: devcontainers/[email protected]
with:
runCmd: |
ruff -v ./langchain_weaviate/ ./tests/
format_check:
name: Check code format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and run Dev Container task
uses: devcontainers/[email protected]
with:
runCmd: |
poetry run ruff format -v --diff ./langchain_weaviate/ ./tests/

0 comments on commit 185b453

Please sign in to comment.