-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 869 Bytes
/
test.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
name: test
on:
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
COMMENT_BODY_IDENTIFIER: Pytest Coverage Comment
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python & Poetry
uses: nakamasato/github-actions/setup-poetry@1.6.3
with:
install-dependencies: true
- name: test
run: |
set -o pipefail
poetry run pytest | tee pytest-coverage.txt
- name: pytest coverage comment
id: pytest-coverage-comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml