Skip to content

Commit 56c1244

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

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

Diff for: .github/workflows/cli.yml

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: cli
2-
31
on:
42
push:
53
branches: [ 'master', 'release', 'rust' ]
@@ -190,6 +188,29 @@ jobs:
190188
run: |
191189
./dev/docker/run ./dev/dev lint
192190
191+
run-smoke-tests:
192+
name: "Smoke tests"
193+
needs: [ build-cli ]
194+
runs-on: ubuntu-24.04
195+
196+
steps:
197+
- name: "Checkout code"
198+
uses: actions/checkout@v4
199+
with:
200+
fetch-depth: 1
201+
submodules: true
202+
203+
- name: "Download build artifacts"
204+
uses: actions/download-artifact@v4
205+
with:
206+
pattern: pangraph-*
207+
merge-multiple: true
208+
path: ".out"
209+
210+
- name: "Run smoke tests"
211+
run: |
212+
chmod +x ./.out/pangraph-x86_64-unknown-linux-gnu
213+
./dev/run-smoke-tests ./.out/pangraph-x86_64-unknown-linux-gnu --fast
193214
194215
195216
run-compat-tests-x86_64-unknown-linux-gnu:
@@ -368,7 +389,7 @@ jobs:
368389
369390
publish-to-github-releases:
370391
name: "Publish to GitHub Releases"
371-
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
392+
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 ]
372393
if: endsWith(github.ref, '/release-cli')
373394
runs-on: ubuntu-24.04
374395

@@ -405,7 +426,7 @@ jobs:
405426
406427
publish-to-docker-hub:
407428
name: "Publish to Docker Hub"
408-
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
429+
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 ]
409430
if: endsWith(github.ref, '/release-cli')
410431
runs-on: ubuntu-24.04
411432

Diff for: .github/workflows/docs.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: docs
2-
31
on:
42
push:
53
branches: [ 'release-docs' ]

Diff for: .github/workflows/pypangraph.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: pypangraph
2-
31
on:
42
push:
53
branches: [ 'master', 'release-pypangraph' ]
@@ -73,7 +71,7 @@ jobs:
7371

7472
steps:
7573
- name: "Checkout code"
76-
- uses: actions/checkout@v4
74+
uses: actions/checkout@v4
7775

7876
- name: "Setup Python"
7977
uses: actions/setup-python@v3
@@ -86,7 +84,8 @@ jobs:
8684
pip install build
8785
8886
- name: "Build package"
89-
run: python -m build
87+
run: |
88+
python -m build
9089
9190
- name: "Publish package"
9291
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)