diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f05262f..2920b4f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,24 +111,7 @@ jobs: with: python-version-file: "./projects/pgai/.python-version" - - name: Install dependencies - working-directory: ./projects/pgai - run: uv sync --all-extras - - - name: Lint - run: just pgai lint - - - name: Check Typing - run: just pgai type-check - - - name: Check Formatting - run: just pgai format - - - name: Run Tests - run: just pgai test + - name: CI pipeline. Install dependencies, run linters and formatters, execute tests and build the project", + run: just pgai ci env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - - - - name: Build the pgai distributable and check artifacts - run: just pgai build + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} \ No newline at end of file diff --git a/projects/pgai/justfile b/projects/pgai/justfile index 34ed41ba2..4b67cac33 100644 --- a/projects/pgai/justfile +++ b/projects/pgai/justfile @@ -25,7 +25,7 @@ build: # Install the wheel package locally install: - @uv sync + @uv sync --all-extras # Remove the installed pgai package uninstall: @@ -51,7 +51,8 @@ type-check: format: @uv run ruff format --diff ./ -ci: lint type-check format test build +# CI pipeline. Runs all recipes needed for ensuring the code is ready to be integrated. Triggered by GH Actions +ci: install lint type-check format test build # Build Docker image with version tag docker-build: