Skip to content

Commit

Permalink
chore: add smoke tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Feb 12, 2025
1 parent 1da91b9 commit cde7e1c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,29 @@ jobs:
run: |
./dev/docker/run ./dev/dev lint
run-smoke-tests:
name: "Smoke tests"
needs: [ build-cli ]
runs-on: ubuntu-24.04

steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
with:
pattern: pangraph-*
merge-multiple: true
path: ".out"

- name: "Run smoke tests"
run: |
chmod +x ./.out/pangraph-x86_64-unknown-linux-gnu
./dev/run-smoke-tests ./.out/pangraph-x86_64-unknown-linux-gnu --fast
run-compat-tests-x86_64-unknown-linux-gnu:
Expand Down Expand Up @@ -368,7 +391,7 @@ jobs:
publish-to-github-releases:
name: "Publish to GitHub Releases"
needs: [ build-cli, run-unit-tests, run-lints, run-smoke-tests, run-linux-distros-test, check-cli-docs ]
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 ]
if: endsWith(github.ref, '/release-cli')
runs-on: ubuntu-24.04

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

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pypangraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
- name: "Checkout code"
- uses: actions/checkout@v4
uses: actions/checkout@v4

- name: "Setup Python"
uses: actions/setup-python@v3
Expand All @@ -86,7 +86,8 @@ jobs:
pip install build
- name: "Build package"
run: python -m build
run: |
python -m build
- name: "Publish package"
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit cde7e1c

Please sign in to comment.