-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.35 KB
/
ci_with_install.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This CI will launch a Docker image that contains all the dependencies required
# within that image the pytest test suite is run
name: CI with install
on:
push:
branches:
- main
pull_request:
branches:
- develop
- main
paths-ignore:
- 'docs/**'
- '.gitignore'
- '*.md'
- 'CITATION.cff'
- 'LICENSE.txt'
- 'readthedocs.yml'
jobs:
testing:
runs-on: ubuntu-latest
container:
image: openmc/openmc:develop
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install package
run: |
pip install .
python -c "import openmc_source_plotter"
- name: Run examples
run: |
python examples/example_get_particle_data.py
python examples/example_plot_source_direction.py
python examples/example_plot_source_energy.py
python examples/example_plot_source_position.py
python examples/example_plot_two_source_energies.py
pip install openmc_plasma_source
# python examples/example_plot_plasma_source_position.py
- name: Run test_utils
run: |
pip install .[tests]
pytest tests -v --cov=openmc_source_plotter --cov-append --cov-report term --cov-report xml
- name: Upload to codecov
uses: codecov/codecov-action@v2