Skip to content

Commit

Permalink
Merge pull request #27 from ChristopherMayes/add_tests
Browse files Browse the repository at this point in the history
Add basic particle tests and workflow
  • Loading branch information
ChristopherMayes authored Sep 9, 2022
2 parents 3ddba04 + eb61d18 commit d0cd7f2
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 477 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
activate-environment: pmd_beamphysics-dev
environment-file: environment.yml

# - name: flake8
# shell: bash -l {0}
# run: |
# flake8 .

- name: Install openPMD-beamphysics
shell: bash -l {0}
run: |
pip install --no-dependencies .
- name: Run Tests
shell: bash -l {0}
run: |
pytest tests
Loading

0 comments on commit d0cd7f2

Please sign in to comment.