-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (38 loc) · 1.35 KB
/
ci.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
name: Continuous Integration
on:
push:
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Fetch repository
uses: actions/checkout@v3
- name: Install Ubuntu packages
run: sudo apt-get install -y debhelper lintian fakeroot python-all python3-all python-setuptools dh-python
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install python packages
run: |
pip install six urllib3 coverage-lcov
pip install -rrequirements.dev.txt --upgrade
- name: Run tests
run: python3 ./devtools/unittests.py --format json -v
- name: Run pylint
run: python3 ./devtools/xtdlint.py --rcfile .pylintrc -j 4 coverxygen -r yes -s yes || echo "Some errors found, but continuing..."
- name: Package
run: |
dpkg-buildpackage -uc -us
lintian ../python-coverxygen_*.deb || echo "Some errors found, but continuing..."
lintian ../python3-coverxygen_*.deb || echo "Some errors found, but continuing..."
- name: Generate coverage
run: |
./devtools/coverage.sh python3
coverage-lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info