-
-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (33 loc) · 864 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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.10]
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