Skip to content

Commit cde7e1c

Browse files
chore: add smoke tests on ci
1 parent 1da91b9 commit cde7e1c

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

Diff for: .github/workflows/cli.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,29 @@ jobs:
190190
run: |
191191
./dev/docker/run ./dev/dev lint
192192
193+
run-smoke-tests:
194+
name: "Smoke tests"
195+
needs: [ build-cli ]
196+
runs-on: ubuntu-24.04
197+
198+
steps:
199+
- name: "Checkout code"
200+
uses: actions/checkout@v4
201+
with:
202+
fetch-depth: 1
203+
submodules: true
204+
205+
- name: "Download build artifacts"
206+
uses: actions/download-artifact@v4
207+
with:
208+
pattern: pangraph-*
209+
merge-multiple: true
210+
path: ".out"
211+
212+
- name: "Run smoke tests"
213+
run: |
214+
chmod +x ./.out/pangraph-x86_64-unknown-linux-gnu
215+
./dev/run-smoke-tests ./.out/pangraph-x86_64-unknown-linux-gnu --fast
193216
194217
195218
run-compat-tests-x86_64-unknown-linux-gnu:
@@ -368,7 +391,7 @@ jobs:
368391
369392
publish-to-github-releases:
370393
name: "Publish to GitHub Releases"
371-
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
394+
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-compat-tests-x86_64-unknown-linux-gnu, run-compat-tests-x86_64-unknown-linux-musl, run-compat-tests-x86_64-apple-darwin, run-compat-tests-aarch64-apple-darwin, run-compat-tests-x86_64-pc-windows-gnu, check-cli-docs ]
372395
if: endsWith(github.ref, '/release-cli')
373396
runs-on: ubuntu-24.04
374397

@@ -405,7 +428,7 @@ jobs:
405428
406429
publish-to-docker-hub:
407430
name: "Publish to Docker Hub"
408-
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
431+
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-compat-tests-x86_64-unknown-linux-gnu, run-compat-tests-x86_64-unknown-linux-musl, run-compat-tests-x86_64-apple-darwin, run-compat-tests-aarch64-apple-darwin, run-compat-tests-x86_64-pc-windows-gnu, check-cli-docs ]
409432
if: endsWith(github.ref, '/release-cli')
410433
runs-on: ubuntu-24.04
411434

Diff for: .github/workflows/pypangraph.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
steps:
7575
- name: "Checkout code"
76-
- uses: actions/checkout@v4
76+
uses: actions/checkout@v4
7777

7878
- name: "Setup Python"
7979
uses: actions/setup-python@v3
@@ -86,7 +86,8 @@ jobs:
8686
pip install build
8787
8888
- name: "Build package"
89-
run: python -m build
89+
run: |
90+
python -m build
9091
9192
- name: "Publish package"
9293
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)