-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 966 Bytes
/
pr-coverage.yml
File metadata and controls
42 lines (35 loc) · 966 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
name: PR Test Coverage
on:
pull_request:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.8.3'
- name: Install Dependencies
working-directory: ./python
run: poetry install
- name: Run Tests
run: |
poetry run coverage run --source=ouroboros/helpers -m pytest
poetry run coverage report -m
poetry run coverage xml
working-directory: ./python
- name: Get Cover
uses: orgoro/coverage@v3.2
with:
coverageFile: python/coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}