Skip to content

Commit

Permalink
Another attempt to fix actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndilalla committed May 9, 2024
1 parent 9a856c1 commit 9873e1d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 33 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,19 @@ jobs:
run: |
python -m pip install --upgrade pip wheel
# temp fixes
#pip install git+https://github.com/desihub/speclite.git
#pip install tables==3.8.0
#pip install git+https://github.com/EconForge/interpolation.py.git
if [[ ${{matrix.os}} == macos-latest ]];
then
brew update
brew install hdf5
fi
pip install --upgrade astromodels
#pip install --upgrade astromodels
if [[ "${ISDEV}" == "true" ]]; then
#pip install --upgrade --pre --no-deps astromodels
# temp fix!
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
pip install --upgrade flake8 coverage pytest-cov cython
Expand Down Expand Up @@ -98,7 +95,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9","3.10","3.11"]
os: [ "ubuntu-latest", "macos-latest" ]
os: [ "ubuntu-latest", "macos-latest", "macos-12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -110,12 +107,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
# temp fixes
#python -m pip install cython extension_helpers astropy numpy numba tempita h5py
#pip install git+https://github.com/desihub/speclite.git
#pip install tables==3.8.0
#pip install git+https://github.com/EconForge/interpolation.py.git
if [[ ${{matrix.os}} == macos-latest ]];
then
Expand Down
39 changes: 23 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:


pip install zeus-mcmc
pip install git+https://github.com/desihub/speclite.git
#pip install git+https://github.com/desihub/speclite.git
pip install "black<24"

pip install astromodels
Expand All @@ -40,7 +40,8 @@ jobs:
shell: bash -l {0}
run: |
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:

hal_notebooks:
name: "Build the HAL notebooks"
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -126,7 +127,8 @@ jobs:
pip install "black<24"
pip install git+https://github.com/threeml/hawc_hal.git
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down Expand Up @@ -157,7 +159,7 @@ jobs:

fermi_notebooks:
name: "Build the Fermi notebooks"
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -207,7 +209,8 @@ jobs:
pip install "black<24"
pip install fermipy
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down Expand Up @@ -253,7 +256,7 @@ jobs:

xspec_notebooks:
name: "Build the XSPEC notebooks"
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -302,9 +305,10 @@ jobs:
run: |
pip install zeus_mcmc dynesty
pip install "black<24"
pip install git+https://github.com/desihub/speclite.git
#pip install git+https://github.com/desihub/speclite.git
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down Expand Up @@ -339,7 +343,7 @@ jobs:

multinest_notebooks:
name: "Build the multinest notebooks"
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -389,9 +393,11 @@ jobs:
pip install zeus_mcmc dynesty
pip install "black<24"
#pip install --no-binary :all: root_numpy
pip install git+https://github.com/desihub/speclite.git
#pip install git+https://github.com/desihub/speclite.git
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down Expand Up @@ -437,7 +443,7 @@ jobs:
upload_notebooks:
needs: [fast_notebooks, fermi_notebooks, hal_notebooks, xspec_notebooks, multinest_notebooks]
name: "Upload notebooks and trigger RTD"
runs-on: macos-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down Expand Up @@ -495,7 +501,7 @@ jobs:

api_doc:
name: "Create the API stubs"
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -541,7 +547,7 @@ jobs:

build_docs:
name: "Build the Documentation"
runs-on: macos-latest
runs-on: ubuntu-latest
needs: [upload_notebooks, api_doc]
steps:

Expand Down Expand Up @@ -575,7 +581,8 @@ jobs:
pip3 install -r docs/requirements.txt
if [[ "${ISDEV}" == "true" ]]; then
pip install --upgrade --pre astromodels
#pip install --upgrade --pre astromodels
pip install git+https://github.com/threeML/astromodels.git@dev
else
pip install --upgrade astromodels
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/environment_fermi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
- ipywidgets
- ipython
- ipyparallel
- numba<0.59
- numba
- xz
- py
- numexpr
Expand Down
2 changes: 1 addition & 1 deletion ci/environment_hal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies:
- ipywidgets
- ipython
- ipyparallel
- numba<0.59
- numba
- xz
- py
- numexpr
Expand Down
2 changes: 1 addition & 1 deletion ci/environment_xspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:
- ipywidgets
- ipython
- ipyparallel
- numba<0.59
- numba
- xz
- py
- numexpr
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nbsphinx
cython
numpy
pandas
numba<0.59
numba
sphinx_rtd_dark_mode
mock
recommonmark

0 comments on commit 9873e1d

Please sign in to comment.