From ab20c604bb35ec7d3fafe48b2c19362f16e9b36d Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Tue, 14 May 2024 15:49:23 -0700 Subject: [PATCH] try other install technique --- .github/workflows/python-package.yml | 23 ++++++++++------------- setup.cfg | 1 + 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 082d3ec..c0c2359 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -27,12 +27,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -59,12 +59,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -94,22 +94,19 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Python dependencies run: | python -m pip install --upgrade pip wheel setuptools docutils\<0.18 Sphinx - python -m pip install sphinx-astropy - python -m pip install speclite - python -m pip install git+https://github.com/desihub/desiutil.git@3.4.2 - python -m pip install git+https://github.com/desihub/desimodel.git@0.19.1 + python -m pip install -e .[docs] - name: Test the documentation run: sphinx-build -W --keep-going -b html docs docs/_build/html @@ -125,12 +122,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -141,4 +138,4 @@ jobs: - name: Test the style; failures are allowed # This is equivalent to an allowed falure. continue-on-error: true - run: flake8 speclite --count --max-line-length=100 + run: flake8 specsim --count --max-line-length=100 diff --git a/setup.cfg b/setup.cfg index 5ab0ea5..2f47514 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,6 +43,7 @@ fitgalsim = specsim.fitgalsim:main [options.extras_require] docs = sphinx-astropy + git+https://github.com/desihub/desiutil.git@3.4.2 git+https://github.com/desihub/desimodel.git@0.19.1 [tool:pytest]