Skip to content

Commit

Permalink
tweaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 1, 2024
1 parent 0c522d4 commit e5d00a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest] # Add more os?
python-version: [3.8, 3.9]
python-version: ['3.8', '3.9']
astropy-version: ['<5.0', '<5.1']
numpy-version: ['<1.20', '<1.21', '<1.22']
scipy-version: ['<1.6', '<1.7']
matplotlib-version: ['<3.4', '<3.5']
matplotlib-version: ['<3.3'] # '<3.4', '<3.5']

steps:
- name: Checkout code
Expand Down Expand Up @@ -70,8 +70,8 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install pytest pytest-astropy coveralls
python -m pip install pyyaml numpy\<1.21 scipy\<1.6 matplotlib\<3.3 astropy\<5.0
python -m pip install pytest pytest-astropy pyyaml coveralls
python -m pip install numpy\<1.21 scipy\<1.6 matplotlib\<3.3 astropy\<5.0
- name: Run the test with coverage
run: pytest --cov
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools Sphinx\<8
python -m pip install sphinx-astropy
python -m pip install -e .[docs]
- name: Test the documentation
run: sphinx-build -W --keep-going -b html docs docs/_build/html
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import datetime
import os
import sys
from importlib import import_module

try:
import astropy_helpers
Expand Down Expand Up @@ -84,7 +85,7 @@
# |version| and |release|, also used in various other places throughout the
# built documents.

__import__(setup_cfg['package_name'])
import_module(setup_cfg['package_name'])
package = sys.modules[setup_cfg['package_name']]

# The short X.Y version.
Expand Down

0 comments on commit e5d00a5

Please sign in to comment.