Skip to content

Commit 292aa75

Browse files
committed
add new ci to test ibpc_py
1 parent 13a12db commit 292aa75

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/test.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: test
2+
on:
3+
pull_request:
4+
push:
5+
branches: [ main ]
6+
defaults:
7+
run:
8+
shell: bash
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
steps:
14+
-
15+
name: Checkout
16+
uses: actions/checkout@v4
17+
-
18+
name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
-
21+
name: Login to GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
-
28+
name: Build estimator
29+
uses: docker/build-push-action@v6
30+
with:
31+
file: Dockerfile.estimator
32+
load: true
33+
tags: ${{ env.TEST_TAG }}
34+
-
35+
name: Build tester
36+
uses: docker/build-push-action@v6
37+
with:
38+
file: Dockerfile.tester
39+
load: true
40+
tags: ghcr.io/opencv/bpc/estimator-tester:latest
41+
-
42+
name: Build ibpc_py
43+
run: |
44+
cd ibpc_py
45+
python -m pip install -e .
46+
-
47+
name: Run bpc fetch
48+
run: |
49+
bpc fetch ipd
50+
# TODO make a bpc test return on success
51+
# -
52+
# name: Run bpc test
53+
# run: |
54+
# bpc fetch ipd
55+
56+
57+

0 commit comments

Comments
 (0)