forked from MAVENSDC/PyTplot
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.33 KB
/
unittest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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