File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Save as .github/workflows/tests.yml
21name : Unit Tests
32
43on :
@@ -16,38 +15,29 @@ concurrency:
1615 cancel-in-progress : true
1716
1817env :
19- # Tag produced by docker/build-trt.bash
2018 IMAGE : sam3-tensorrt:infer
2119
2220jobs :
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
You can’t perform that action at this time.
0 commit comments