Skip to content

Commit

Permalink
Add a smoke test workflow of forecast.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ma595 committed Nov 12, 2024
1 parent bd2a036 commit 35e4269
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Smoke test
run: |
export PYTHONPATH=$(pwd)/lib:$PYTHONPATH
pytest ./tests
13 changes: 13 additions & 0 deletions tests/test_forecast.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import sys
import os
import pytest


def test_import_forecast():
"""Test that the forecast module can be imported successfully."""
try:
import forecast

assert True, "forecast imported successfully."
except ImportError as e:
pytest.fail(f"Failed to import forecast: {e}")

0 comments on commit 35e4269

Please sign in to comment.