Add particle species in Beam classes and update tracking methods #1493
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.10", "3.11", "3.12", "3.13"] | |
include: | |
- os: macos-latest | |
python-version: "3.13" | |
- os: windows-latest | |
python-version: "3.13" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
miniforge-version: "latest" | |
- name: Install Bmad and PyTao | |
run: | | |
if [[ ! ${{ runner.os }} == 'Windows' ]]; then | |
conda install bmad pytao | |
fi | |
- name: Install pip dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[openpmd] | |
pip install -r test_requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest |