-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (55 loc) · 1.63 KB
/
makefile.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
57
58
59
60
name: Run Python tests
on: [push, pull_request]
permissions: read-all
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9.19"]
steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Berlin"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: pip install pytest pytest-md pytest-emoji pytest-cov
- name: Install app dependencies
run: pip install urnparse packageurl-python
- uses: pavelzw/pytest-action@v2
with:
emoji: false
verbose: false
job-summary: true
custom-arguments: "--cov=./ \
--cov-report html \
--cov-report term \
--cov-report xml \
--junit-xml=pytest-report.xml \
-s -v "
- run: mkdir -p artifact
- run: mv coverage.xml artifact/coverage.xml
- run: ls -l artifact/*
- uses: actions/upload-artifact@master
with:
name: tei-coverage
path: artifact
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
with:
name: tei-coverage
path: artifact
- run: cat artifact/coverage.xml
- name: Get Cover
uses: orgoro/[email protected]
with:
coverageFile: artifact/coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}