-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GHA workflow to run smoketests
- Loading branch information
1 parent
d111e7b
commit f6fab0e
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Run smoke tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
smoketests: | ||
name: Smoke tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install locally | ||
run: python3 -m pip install -e . | ||
|
||
- name: '"Nixless" smoke test' | ||
working-directory: tests | ||
run: ./smoketest_nixless | ||
|
||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: '"List and info" smoke test' | ||
working-directory: tests | ||
run: ./smoketest_list_and_info | ||
|
||
- name: '"Install and run" smoke test' | ||
working-directory: tests | ||
run: ./smoketest_install_and_run | ||
|
||
- name: Show output | ||
if: always() | ||
run: | | ||
echo "::group::Output" | ||
cat tests/out.txt || echo '(no output)' | ||
echo "::endgroup::" | ||
echo "::group::Cumulative output" | ||
cat tests/cumulative_out.txt || echo '(no output)' | ||
echo "::endgroup::" |