Skip to content

Commit

Permalink
add logging to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christinahedges committed Jul 11, 2024
1 parent c946829 commit 93aefd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Verify installation
run: |
poetry show # List installed packages
poetry run python -c "import lkprf" # Try to import your package to verify it's installed
- name: Test with pytest
run: |
poetry run pytest src tests
poetry run pytest --log-cli-level=INFO
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fitsio==1.2.4 ; python_full_version >= "3.8.1" and python_version < "4.0"
numpy==1.24.4 ; python_full_version >= "3.8.1" and python_version < "4.0"
scipy==1.9.3 ; python_full_version >= "3.8.1" and python_version < "4.0"
2 changes: 1 addition & 1 deletion tests/test_prf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import lkprf
import numpy as np
import matplotlib.pyplot as plt
from lkprf import logger

import os


def is_github_actions():
return os.getenv("GITHUB_ACTIONS") == "true"


def test_prfs():
"""Test you can make a prf and it's fairly well centered"""
for prf in [lkprf.KeplerPRF(channel=42), lkprf.TESSPRF(camera=1, ccd=1)]:
Expand Down

0 comments on commit 93aefd1

Please sign in to comment.