Skip to content

Spin tracking

Spin tracking #372

Workflow file for this run

name: Unix
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: [3.11]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
# 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: |
conda install --yes -c conda-forge numba scipy h5py mkl mpich mpi4py matplotlib python=${{ matrix.python-version }}
pip install openPMD-viewer pytest pyflakes lasy
python -m pip install .
- shell: bash -eo pipefail -l {0}
name: pyflakes
run: python -m pyflakes .
- shell: bash -eo pipefail -l {0}
name: FBPIC physics tests
run: |
export NUMBA_THREADING_LAYER=omp
export MKL_NUM_THREADS=2
export NUMBA_NUM_THREADS=2
python -m pytest tests --ignore=tests/unautomated
- shell: bash -eo pipefail -l {0}
name: PICMI test
run: |
pip install wget picmistandard numexpr==2.8.4 periodictable
cd tests/unautomated
curl https://raw.githubusercontent.com/picmi-standard/picmi/master/Examples/laser_acceleration/laser_acceleration_PICMI.py -o fbpic_script.py
python test_picmi.py
rm fbpic_script.py
- shell: bash -eo pipefail -l {0}
name: PICMI boosted test
run: |
cd tests/unautomated
curl https://raw.githubusercontent.com/picmi-standard/picmi/master/Examples/laser_acceleration/lpa_boostedframe_PICMI.py -o fbpic_script.py
cat fbpic_script.py
python test_picmi.py
rm fbpic_script.py