Skip to content

Commit

Permalink
ci: install all dependencies through just pgai install (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya authored Jan 7, 2025
1 parent d9bdcd6 commit 18cde34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 3 additions & 2 deletions projects/pgai/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build:

# Install the wheel package locally
install:
@uv sync
@uv sync --all-extras

# Remove the installed pgai package
uninstall:
Expand All @@ -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:
Expand Down

0 comments on commit 18cde34

Please sign in to comment.