Skip to content

Commit

Permalink
more test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Aug 2, 2024
1 parent 67daa4f commit ca46c74
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ jobs:
python -m pip install 'matplotlib${{ matrix.matplotlib-version }}'
python -m pip install 'astropy${{ matrix.astropy-version }}'
python -m pip install 'numpy${{ matrix.numpy-version }}'
- name: Run the test
run: pytest

#
# Temporarily use coverage to test more recent versions.
# Note that Astropy>=5.1 introduces an ordering change in unit display, which
# causes doctest failures.
#
coverage:
name: Test coverage
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -87,38 +93,38 @@ jobs:
name: Doc test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.8']
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools Sphinx\<8
python -m pip install -e .[docs]
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools Sphinx\<8
python -m pip install -e .[docs]
- name: Test the documentation
run: sphinx-build -W --keep-going -b html docs docs/_build/html
- name: Test the documentation
run: sphinx-build -W --keep-going -b html docs docs/_build/html

style:
name: Style test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10']
os: [ubuntu-latest]
python-version: ['3.10']

steps:
- name: Checkout code
Expand Down Expand Up @@ -171,3 +177,6 @@ jobs:
- name: Test installing from the checkout
run: python -m pip install .

- name: Run a script that should have been installed
run: speclite_benchmark

0 comments on commit ca46c74

Please sign in to comment.