fix get_data for weighting in momentum reader #274
Workflow file for this run
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
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 | |
- name: Cache conda | |
uses: actions/cache@v3 | |
# Increase this value to reset cache | |
env: {CACHE_NUMBER: 0} | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ matrix.python-version }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
name: Setup conda | |
with: | |
auto-update-conda: true | |
activate-environment: testing | |
auto-activate-base: false | |
channels: conda-forge,defaults | |
channel-priority: true | |
- 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 | |
- shell: bash -eo pipefail -l {0} | |
name: pyflakes | |
run: python -m pyflakes openpmd_viewer | |
- shell: bash -eo pipefail -l {0} | |
name: Test | |
run: python setup.py test |