Skip to content

Commit

Permalink
Merge pull request #132 from neherlab/chore/ci-smoke-tests
Browse files Browse the repository at this point in the history
chore: add smoke tests on ci
  • Loading branch information
ivan-aksamentov authored Feb 12, 2025
2 parents 2470148 + 44cbe94 commit 28f27eb
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 12 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: cli

on:
push:
branches: [ 'master', 'release', 'rust' ]
Expand Down Expand Up @@ -54,6 +52,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Setup cache for Rust and Cargo"
uses: actions/cache@v4
Expand Down Expand Up @@ -109,6 +108,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Setup cache for Rust and Cargo"
uses: actions/cache@v4
Expand Down Expand Up @@ -157,6 +157,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Setup cache for Rust and Cargo"
uses: actions/cache@v4
Expand Down Expand Up @@ -190,6 +191,30 @@ 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
lfs: 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 All @@ -203,6 +228,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
Expand All @@ -227,6 +253,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -347,6 +374,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
Expand All @@ -368,7 +396,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 All @@ -378,6 +406,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -405,7 +434,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 All @@ -415,6 +444,7 @@ jobs:
with:
fetch-depth: 1
submodules: true
lfs: true

- name: "Download build artifacts"
uses: actions/download-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: docs

on:
push:
branches: [ 'release-docs' ]
Expand Down Expand Up @@ -28,10 +26,12 @@ jobs:
name: ${{ github.ref }}

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

- uses: "actions/setup-node@v4"
with:
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/pypangraph.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: pypangraph

on:
push:
branches: [ 'master', 'release-pypangraph' ]
Expand Down Expand Up @@ -40,7 +38,11 @@ jobs:

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

- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v3
Expand Down Expand Up @@ -73,7 +75,11 @@ jobs:

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

- name: "Setup Python"
uses: actions/setup-python@v3
Expand All @@ -86,7 +92,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 28f27eb

Please sign in to comment.