Add particle species in Beam classes and update tracking methods #1387
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: pytest | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
include: | |
- os: macos-latest | |
python-version: "3.12" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: 'latest' | |
conda-solver: 'classic' | |
python-version: ${{ matrix.python-version }} | |
activate-environment: test_environment | |
- name: Install Bmad and Pytao | |
shell: bash -el {0} | |
run: | | |
conda install -c conda-forge bmad | |
conda install -c conda-forge pytao | |
- name: Install pip dependencies | |
shell: bash -el {0} | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[openpmd] | |
pip install -r test_requirements.txt | |
- name: Test with pytest | |
shell: bash -el {0} | |
run: | | |
pytest --seed 42 |