-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 887 Bytes
/
actions.yaml
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
name: Python CI
on:
push:
branches:
- main
pull_request:
permissions:
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -e .
- name: Run tests with coverage
run: |
pytest --cov=roll_sim --cov-report xml:cov.xml --junitxml=res.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: |
res.xml
- name: Coverage report
uses: 5monkeys/cobertura-action@master
with:
path: cov.xml
minimum_coverage: 66