-
Notifications
You must be signed in to change notification settings - Fork 30
47 lines (39 loc) · 1005 Bytes
/
tests.yml
File metadata and controls
47 lines (39 loc) · 1005 Bytes
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
name: Run tests
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
container: openmc/openmc:latest
steps:
- uses: actions/checkout@v4
- name: Apt dependencies
shell: bash
run: |
apt -y update
apt install -y python3-venv curl
python -m venv venv
source venv/bin/activate
- name: Install
shell: bash
run: |
pip install -U pip
pushd /root/OpenMC/openmc
pip install .[test]
popd
pip install .[test]
- name: Test
shell: bash
run: pytest --cov=openmc_mcnp_adapter --cov-branch --cov-report=xml -rs tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: openmc-dev/openmc_mcnp_adapter