reduce size of changelog displayed on RTD #149
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Coverage test in Python 3 | |
os: ubuntu-latest | |
python: '3.11' | |
toxenv: py311-poppydev-pysiafdev-cov | |
- name: Check for Sphinx doc build errors | |
os: ubuntu-latest | |
python: '3.10' | |
toxenv: docbuild | |
- name: Try Astropy development version | |
os: ubuntu-latest | |
python: '3.10' | |
toxenv: py310-astropydev-test | |
- name: Try latest versions of all dependencies | |
os: ubuntu-latest | |
python: '3.11' | |
toxenv: py311-latest-test | |
- name: Try minimum supported versions | |
os: ubuntu-latest | |
python: '3.10' | |
toxenv: py310-legacy-test | |
- name: Try released POPPY and PySIAF | |
os: ubuntu-latest | |
python: '3.10' | |
toxenv: py310-stable-test | |
continue-on-error: 'true' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Python dependencies | |
run: pip install tox tox-conda>=0.2 | |
- name: Get WebbPSF Data | |
run: | # Get WebbPSF data files (just a subset of the full dataset!) and set up environment variable | |
wget https://stsci.box.com/shared/static/gkbnn3jwcootr9riwv0rv1t8rpvxl3vr.gz -O /tmp/minimal-webbpsf-data.tar.gz | |
tar -xzvf /tmp/minimal-webbpsf-data.tar.gz | |
echo "WEBBPSF_PATH=${{github.workspace}}/webbpsf-data" >> $GITHUB_ENV | |
- name: Check conda info | |
run: conda info | |
- name: Run tests with requirements file | |
if: ${{ contains(matrix.toxenv,'-latest') }} | |
run: | | |
cp $RUNNER_WORKSPACE/webbpsf/requirements.txt /tmp/ | |
tox -e ${{ matrix.toxenv }} | |
- name: Run tests | |
if: ${{ matrix.continue-on-error == null && contains(matrix.toxenv,'-latest') != true }} | |
run: tox -e ${{ matrix.toxenv }} | |
- name: Run tests and allow failures | |
if: matrix.continue-on-error | |
continue-on-error: true | |
run: tox -e ${{ matrix.toxenv }} | |
- name: Upload coverage to codecov | |
if: ${{ contains(matrix.toxenv,'-cov') }} | |
uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage.xml |