Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for verify guides (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos committed Sep 5, 2024
1 parent 3b1135d commit 5ea6ba5
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 36 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/verify-guides-billion-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Giudes (billion scale image search)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-image.yml" # Test changes to this file
- "billion-scale-image-search/"

pull_request:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-image.yml" # Test changes to this file
- "billion-scale-image-search/"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-file: "billion-scale-image-search/README.md"
22 changes: 22 additions & 0 deletions .github/workflows/verify-guides-billion-vector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Giudes (billion scale vector search)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-vector.yml" # Test changes to this file
- "billion-scale-vector-search/"

pull_request:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-vector.yml" # Test changes to this file
- "billion-scale-vector-search/"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-file: "billion-scale-vector-search/README.md"
28 changes: 28 additions & 0 deletions .github/workflows/verify-guides-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Verify Giudes (Main)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths-ignore:
- "billion-scale-vector-search/"
- "billion-scale-image-search/"
- "examples/model-deployment/"
- ".github/**"
- "!.github/workflows/verify-guides-main.yml"

pull_request:
branches: ["master"]
paths-ignore:
- "billion-scale-vector-search/"
- "billion-scale-image-search/"
- "examples/model-deployment/"
- ".github/**"
- "!.github/workflows/verify-guides-main.yml"

jobs:
main:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-config-path: "test/_test_config.yml"
36 changes: 0 additions & 36 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,6 @@ shared:
ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64/bin/vespa /usr/local/bin/
jobs:
verify-billion-scale-vector-search:
requires: [~pr, ~commit]
sourcePaths: ["billion-scale-vector-search/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
screwdriver.cd/timeout: 180
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- *install-deps
- run-tests: |
cd $SD_DIND_SHARE_PATH
$SD_SOURCE_DIR/test/test.py -w $SD_SOURCE_DIR $SD_SOURCE_DIR/billion-scale-vector-search/README.md
verify-billion-scale-image-search:
requires: [~pr, ~commit]
sourcePaths: ["billion-scale-image-search/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
screwdriver.cd/timeout: 300
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- *install-deps
- run-tests: |
cd $SD_DIND_SHARE_PATH
$SD_SOURCE_DIR/test/test.py -w $SD_SOURCE_DIR $SD_SOURCE_DIR/billion-scale-image-search/README.md
verify-notebooks:
requires: [~commit, ~pr]
sourcePaths: ["examples/model-deployment/", "text-image-search/"]
Expand Down

0 comments on commit 5ea6ba5

Please sign in to comment.