Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Oct 7, 2024
1 parent 2f01de4 commit 6366d8f
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 104 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: pytest
on:
pull_request:
types:
- opened # default trigger
- reopened # default trigger
- synchronize # default trigger
- ready_for_review # don't run on draft PRs
- milestoned # allows us to trigger on bot PRs
- opened # default trigger
- reopened # default trigger
- synchronize # default trigger
- ready_for_review # don't run on draft PRs
- milestoned # allows us to trigger on bot PRs
paths:
- "**"
- "!.github/**"
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:

- name: Setup Repeater
env:
LOCAL_VERSION: e2e-test
VERSION: e2e-test
run: |
make docker-repeater
docker run -p 50051:50051 -d --name=repeater ghcr.io/defenseunicorns/leapfrogai/repeater:$LOCAL_VERSION
uds run create:repeater-image --set VERSION=${VERSION}
uds run deploy:repeater-image --set VERSION=${VERSION}
- name: Run Pytest
run: make test-api-unit
Expand Down Expand Up @@ -90,10 +90,10 @@ jobs:

- name: Setup Repeater
env:
LOCAL_VERSION: e2e-test
VERSION: e2e-test
run: |
make docker-repeater
docker run -p 50051:50051 -d --name=repeater ghcr.io/defenseunicorns/leapfrogai/repeater:$LOCAL_VERSION
uds run create:repeater-image --set VERSION=${VERSION}
uds run deploy:repeater-image --set VERSION=${VERSION}
- name: Setup UDS Cluster
uses: ./.github/actions/uds-cluster
Expand Down
10 changes: 5 additions & 5 deletions packages/k3d-gpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ All system requirements and pre-requisites from the [LeapfrogAI documentation we
### Deployment

> [!NOTE]
> The following Make targets can be executed from the root of the LeapfrogAI repository or within this sub-directory.
> The following UDS Tasks must be executed from the root of the LeapfrogAI repository.
To deploy a new K3d cluster with [UDS Core Slim Dev](https://github.com/defenseunicorns/uds-core#uds-package-development), use one of the following Make targets.

```bash
make create-uds-gpu-cluster # create a uds cluster equipped with the k3d-gpu image
uds run setup:k3d-gpu-cluster-slim # create a uds cluster equipped with the k3d-gpu image

make test-uds-gpu-cluster # deploy a test gpu pod to see if everything is working
uds run test:k3d-gpu-cluster # deploy a test gpu pod to see if everything is working
```

### Local Development

> [!NOTE]
> The following Make targets can be executed from the root of the LeapfrogAI repository or within this sub-directory
> The following UDS Tasks must be executed from the root of the LeapfrogAI repository.
To build **just** the K3s CUDA image for container debugging, use the following Make target.

```bash
make build-k3d-gpu # build the image
uds run create:k3d-gpu-image # build the image
```

## References
Expand Down
1 change: 1 addition & 0 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ includes:
- setup: ./tasks/setup.yaml
- deploy: ./tasks/deploy.yaml
- utils: ./tasks/utils.yaml
- test: ./tasks/test.yaml

tasks:
#######
Expand Down
Loading

0 comments on commit 6366d8f

Please sign in to comment.