From 3b513b4044f237bb2a7c8d7725c3ad7db9d21353 Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Fri, 2 Aug 2024 09:52:28 -0700 Subject: [PATCH] update astropy_helpers --- .github/workflows/python-package.yml | 32 ++++++++++++++++++++++++++++ .gitmodules | 2 +- astropy_helpers | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a9200b1..72eabad 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -139,3 +139,35 @@ jobs: # If allowed failures are needed, uncomment continue-on-error. # continue-on-error: true run: flake8 speclite --count --max-line-length=100 + + # + # Temporary test to make sure the package can at least be installed + # for more recent Python versions. + # + install: + name: Installation test + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] + python-version: ['3.10', '3.11', '3.12'] + + steps: + - 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: Install Python dependencies + run: | + python -m pip install --upgrade pip wheel setuptools + python -m pip install numpy\<2.0 scipy matplotlib astropy pyyaml + + - name: Test installing from the checkout + run: python -m pip install . diff --git a/.gitmodules b/.gitmodules index 6a20fa6..d0d0278 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "astropy_helpers"] path = astropy_helpers - url = https://github.com/astropy/astropy-helpers.git + url = https://github.com/bsipocz/astropy-helpers.git diff --git a/astropy_helpers b/astropy_helpers index d2a6304..9431edf 160000 --- a/astropy_helpers +++ b/astropy_helpers @@ -1 +1 @@ -Subproject commit d2a6304a3e801bc2cb053ccf1cf09a9f1e62036c +Subproject commit 9431edf2a6e4692bfbd9e6326f01288d61d414e9