-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] reorder install, run apt-get first
- Loading branch information
1 parent
055e769
commit 8c125b4
Showing
1 changed file
with
19 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install system dependencies | ||
run: sudo apt-get update && sudo apt-get -y --no-install-recommends install -y ghostscript | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: false | ||
|
@@ -63,13 +66,11 @@ jobs: | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}-${{ env.cache-version }} | ||
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }} | ||
- name: Install system dependencies | ||
run: sudo apt-get update && sudo apt-get -y --no-install-recommends install -y ghostscript | ||
- name: Install python dependencies | ||
run: | | ||
conda install -y -c conda-forge mamba | ||
mamba install -y -c https://cxc.cfa.harvard.edu/conda/ciao ciao sherpa ds9 ciao-contrib caldb_main | ||
mamba install -y ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml | ||
mamba install -y -c conda-forge ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml | ||
pip install git+https://github.com/JohannesBuchner/coverage-lcov | ||
sudo sed -i '/PDF/s/none/read|write/' /etc/ImageMagick-6/policy.xml | ||
|
@@ -172,13 +173,26 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install system dependencies | ||
run: sudo apt-get update && sudo apt-get -y --no-install-recommends install -y ghostscript | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: false | ||
python-version: ${{ matrix.python-version }} | ||
use-only-tar-bz2: true | ||
#mamba-version: "*" | ||
|
||
|
||
- name: Install mamba | ||
run: conda install -y -c conda-forge mamba | ||
|
||
- name: Install python dependencies | ||
run: | | ||
mamba install -y -c conda-forge ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml | ||
pip install git+https://github.com/JohannesBuchner/coverage-lcov | ||
sudo sed -i '/PDF/s/none/read|write/' /etc/ImageMagick-6/policy.xml | ||
- name: Set directory names | ||
run: | | ||
echo "MYCACHE=$HOME/Downloads/xspec" >> $GITHUB_ENV | ||
|
@@ -199,16 +213,6 @@ jobs: | |
wget -q -nc https://zenodo.org/record/1169181/files/uxclumpy-cutoff.fits https://zenodo.org/record/1169181/files/uxclumpy-cutoff-omni.fits; | ||
popd | ||
- name: Install system dependencies | ||
run: sudo apt-get update && sudo apt-get -y --no-install-recommends install -y ghostscript | ||
|
||
- name: Install python dependencies | ||
run: | | ||
conda install -y -c conda-forge mamba | ||
mamba install -c conda-forge -y ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml | ||
pip install git+https://github.com/JohannesBuchner/coverage-lcov | ||
sudo sed -i '/PDF/s/none/read|write/' /etc/ImageMagick-6/policy.xml | ||
- name: Cache xspec install | ||
uses: pat-s/[email protected] | ||
id: cache-xspec | ||
|
@@ -252,7 +256,7 @@ jobs: | |
echo "PATH: $PATH"; | ||
python -c 'import xspec' || true; | ||
- name: Test install | ||
- name: Check install | ||
run: | | ||
python -c "import numpy"; | ||
python -c "import xspec" | ||
|