Skip to content

Commit

Permalink
Add smoketest run to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Jan 17, 2025
1 parent a424e34 commit 2a7ecc8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,30 @@ jobs:
run: |
make test-deps
make reprotest
- uses: actions/upload-artifact@v4
id: upload
with:
name: rpm-build
path: rpm-build/RPMS/noarch/*.rpm
if-no-files-found: error
test-rpm:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
needs: build-rpm
steps:
- run: dnf install -y git make
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
run: |
git config --global --add safe.directory '*'
make test-deps
- uses: actions/download-artifact@v4
with:
path: rpm-build/RPMS/noarch/
pattern: "*.rpm"
- name: Install RPM and run smoketest
run: |
make smoketest RPM=rpm-build/RPMS/noarch/*fc37.noarch.rpm
2 changes: 1 addition & 1 deletion scripts/smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ echo "RPM installed. (Wait 60 seconds to begin smoketest)..."
sleep 60

echo "Begin smoketest..."
python3 "${TOPLEVEL}/tests/test_keyring.py" && echo "Test complete" || echo "Test failed"
python3 "${TOPLEVEL}/tests/test_keyring.py"

0 comments on commit 2a7ecc8

Please sign in to comment.