Skip to content

Changed np.NaN -> np.nan for numpy 2.0 compatibility #172

Changed np.NaN -> np.nan for numpy 2.0 compatibility

Changed np.NaN -> np.nan for numpy 2.0 compatibility #172

Workflow file for this run

name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
cd $HOME
# wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
# sudo apt-get -y install libgl1-mesa-glx
# sudo apt-get -y install libsm6 libxrender1 libfontconfig1 libxcomposite-dev libxcursor1 libxi6 libxtst6 libxss1 libxrandr2 libasound2 libegl1
# sudo apt-get -y install xvfb
$HOME/miniconda/bin/conda install astropy xarray numpy scipy pyopengl pytest flake8 six coverage bokeh matplotlib --yes
# $HOME/miniconda/bin/conda install pyqt --yes
$HOME/miniconda/bin/conda install pip --yes
$HOME/miniconda/bin/conda install -c anaconda netcdf4 --yes
$HOME/miniconda/bin/conda install -c mavensdc cdflib --yes
$HOME/miniconda/bin/conda install keyring --yes
- name: Run unit tests
run: |
xvfb-run $HOME/miniconda/bin/pytest -rsv $GITHUB_WORKSPACE/tests
cd $GITHUB_WORKSPACE
$HOME/miniconda/bin/python setup.py sdist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
if: startsWith(github.event.ref, 'refs/tags')
with:
password: ${{ secrets.pypi_password }}