-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 990 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
name: StoRM Info Provider tests
on:
push:
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get install -y libldap2-dev libpython2-dev libc6-dev libsasl2-dev
python -m pip install --upgrade pip
pip install pytest-cov mock coverage unittest2 python-ldap==3.3.1
- name: Run coverage
working-directory: ./src
run: |
pytest --cov-report xml --cov=. tests/
coverage html
ls
- name: Get Coverage
uses: orgoro/coverage@v3
if: github.event_name == 'pull_request'
with:
coverageFile: ./src/coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload HTML coverage report
uses: actions/upload-artifact@v2
with:
name: assets-for-download
path: ./src/htmlcov