Skip to content

Commit 6b9b582

Browse files
committed
fixing ci... again
1 parent cca379c commit 6b9b582

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Save as .github/workflows/tests.yml
21
name: Unit Tests
32

43
on:
@@ -16,38 +15,29 @@ concurrency:
1615
cancel-in-progress: true
1716

1817
env:
19-
# Tag produced by docker/build-trt.bash
2018
IMAGE: sam3-tensorrt:infer
2119

2220
jobs:
23-
# This job name is what you select in the branch protection rule.
2421
unit-tests:
2522
runs-on: [self-hosted, linux, gpu] # must match --labels used in config.sh
2623
timeout-minutes: 90
2724

28-
# Don't run fork PRs on your own hardware.
2925
if: >-
3026
github.event_name != 'pull_request' ||
3127
github.event.pull_request.head.repo.full_name == github.repository
3228
3329
steps:
3430
- uses: actions/checkout@v4
3531
with:
36-
# Keep sam3trt/build between runs for incremental C++ builds.
3732
clean: false
3833

39-
# Same script you use by hand. It must run from inside docker/ (it uses
40-
# `-f Dockerfile.trt .`). Layers are cached, so only the first run is slow.
4134
- name: Build docker image
4235
working-directory: docker
4336
run: ./build-trt.bash
4437

4538
- name: Run unit tests in container
4639
env:
47-
# Engines live on the runner machine (they are not in git).
48-
# Must contain image_encoder_fp16.engine, text_encoder_fp16.engine,
49-
# mask_decoder_fp16.engine.
50-
MODELS_DIR: /home/jason/models
40+
MODELS_DIR: /home/jason/Projects/sam3-ws/SAM3-TensorRT/models
5141
TEST_SCRIPT: |
5242
set -uo pipefail
5343
rc=0

0 commit comments

Comments
 (0)