Skip to content

Add calculation of EM energy in RZ #334

Add calculation of EM energy in RZ

Add calculation of EM energy in RZ #334

Workflow file for this run

name: Unix
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-20.04]
include:
- python-version: 3.9
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
- shell: bash -eo pipefail -l {0}
name: Install dependencies
run: |
if [ "${{ matrix.python-version }}" != "3.8" ]; then
conda install --yes cython numpy scipy h5py openpmd-api matplotlib jupyter pytest pyflakes python=${{ matrix.python-version }} python-wget
else
conda install --yes cython numpy scipy h5py matplotlib jupyter pytest pyflakes python=${{ matrix.python-version }} python-wget
fi;
python setup.py install
- shell: bash -eo pipefail -l {0}
name: pyflakes
run: python -m pyflakes openpmd_viewer
- shell: bash -eo pipefail -l {0}
name: Test
run: python -m pytest tests