Skip to content

scatter_da uses scatter_burst_data #21

scatter_da uses scatter_burst_data

scatter_da uses scatter_burst_data #21

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.12"]
exclude:
- os: macOS-latest
python-version: "3.7"
- os: windows-latest
python-version: "3.7"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
# - name: Setup Python ${{matrix.python-version}}
# uses: actions/setup-python@v4
# with:
# python-version: ${{matrix.python-version}}
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: test
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
shell: bash -l {0}
run: python -m pip install --upgrade pip
- name: MacOS install hdf5 dependencies
if: runner.os == 'macOS'
run: |
brew install hdf5
export HDF5_DIR=/usr/local/
export BLOSC_DIR=/usr/local/
- name: Install Dependencies
shell: bash -l {0}
run: |
conda install cython numpy numba nbconvert pytest jupyter scipy pandas matplotlib pytables phconvert lmfit pybroom seaborn setuptools build pyqt
- name: Install project
shell: bash -l {0}
run: |
python -m pip install .
- name: Download files Unix
if: runner.os != 'Windows'
shell: bash -l {0}
run: |
cd notebooks
mkdir data
cd data
wget -N http://files.figshare.com/2182604/12d_New_30p_320mW_steer_3.hdf5
wget -N http://files.figshare.com/2182601/0023uLRpitc_NTP_20dT_0.5GndCl.hdf5
wget -N https://zenodo.org/record/5902313/files/HP3_TE150_SPC630.hdf5
wget -N https://zenodo.org/record/5902313/files/HP3_TE200_SPC630.hdf5
wget -N https://zenodo.org/record/5902313/files/HP3_TE250_SPC630.hdf5
wget -N https://zenodo.org/record/5902313/files/HP3_TE300_SPC630.hdf5
cd ../..
- name: Downlaod files Windows
if: runner.os == 'Windows'
shell: bash -l {0}
run: |
cd notebooks
mkdir data
cd data
curl.exe -L --output 12d_New_30p_320mW_steer_3.hdf5 --url http://files.figshare.com/2182604/12d_New_30p_320mW_steer_3.hdf5
curl.exe -L --output 0023uLRpitc_NTP_20dT_0.5GndCl.hdf5 --url http://files.figshare.com/2182601/0023uLRpitc_NTP_20dT_0.5GndCl.hdf5
curl.exe -L --output HP3_TE150_SPC630.hdf5 --url https://zenodo.org/record/5902313/files/HP3_TE150_SPC630.hdf5
curl.exe -L --output HP3_TE200_SPC630.hdf5 --url https://zenodo.org/record/5902313/files/HP3_TE200_SPC630.hdf5
curl.exe -L --output HP3_TE250_SPC630.hdf5 --url https://zenodo.org/record/5902313/files/HP3_TE250_SPC630.hdf5
curl.exe -L --output HP3_TE300_SPC630.hdf5 --url https://zenodo.org/record/5902313/files/HP3_TE300_SPC630.hdf5
cd ..
cd ..
- name: Test project
shell: bash -l {0}
run: |
cd notebooks
python nbrun.py .
cd ..
cd tests
python -m pytest