-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (46 loc) · 1.63 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
54
55
56
# This CI will lauch a Docker image that contains all the dependencies required
# within that image the pytest test suite is run
name: CI with install
on:
pull_request:
branches:
- develop
- main
paths-ignore:
- 'docs/**'
- '.gitignore'
- '*.md'
- 'CITATION.cff'
- 'LICENSE.txt'
- 'readthedocs.yml'
jobs:
testing:
runs-on: ubuntu-latest
container:
image: ghcr.io/fusion-energy/paramak:dependencies
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: install package
run: |
python setup.py install
- name: Run test_utils
run: |
pytest tests/test_utils.py -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Run test_shape
run: |
pytest tests/test_shape.py -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Run test_reactor
run: |
pytest tests/test_reactor.py -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Run test_parametric_shapes
run: |
pytest tests/test_parametric_shapes/ -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Run test_parametric_components
run: |
pytest tests/test_parametric_components/ -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Run test_parametric_reactors
run: |
pytest tests/test_parametric_reactors/ -v --cov=paramak --cov-append --cov-report term --cov-report xml
- name: Upload to codecov
uses: codecov/codecov-action@v2