Skip to content

Commit

Permalink
Add smoke_test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFizzyBubbs committed Dec 10, 2024
1 parent 0d14c77 commit 087513f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
java-version-file: .java-version
distribution: temurin
- name: Smoke test (wheel)
run: uv run --isolated --no-project --with dist/*.whl -- python -c "import pymafia"
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
- name: Smoke test (source distribution)
run: uv run --isolated --no-project --with dist/*.tar.gz -- python -c "import pymafia"
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions tests/smoke_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pymafia.kolmafia import km

if not km.KoLmafia.permitsContinue():
raise RuntimeError

0 comments on commit 087513f

Please sign in to comment.