File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,18 @@ jobs:
28
28
sudo apt-get install debconf-utils
29
29
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local only'"
30
30
sudo debconf-set-selections <<< "postfix postfix/mailname string localhost"
31
- sudo apt-get install -y mailutils ruby ruby-dev rubygems build-essential sudo gnupg python3-gpg
31
+ sudo apt-get install -y mailutils ruby ruby-dev rubygems build-essential sudo gnupg python3-gpg libgpgme11 libgpgme-dev
32
32
sudo gem install --no-document fpm
33
33
python -m pip install --upgrade pip setuptools wheel
34
- python -m pip install --upgrade tox
34
+ python -m pip install --upgrade mock pycodestyle pytest pytest-cov
35
35
- name : Build deb package
36
36
run : ./fpm/create
37
37
- name : End to end test using deb package
38
38
run : sudo bash -ex ./tests/e2e.sh
39
- - name : Test with tox
40
- run : tox
39
+ - name : Lint with pycodestyle
40
+ run : pycodestyle --show-pep8 --max-line-length=100
41
+ - name : Test with pytest
42
+ run : env PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages python -m pytest --cov=zeyple/ --cov-report=html
41
43
- name : Upload deb package
42
44
uses : actions/upload-artifact@v1
43
45
with :
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
4
+ from __future__ import absolute_import , print_function , unicode_literals
5
+
4
6
from configparser import ConfigParser
5
7
from textwrap import dedent
6
8
from unittest .mock import Mock
14
16
15
17
from zeyple import zeyple as z
16
18
19
+ del absolute_import , print_function , unicode_literals
20
+
17
21
KEYS_FNAME = os .path .join (os .path .dirname (__file__ ), 'keys.gpg' )
18
22
TEST1_ID = 'D6513C04E24C1F83'
19
23
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
4
+ from __future__ import absolute_import , print_function , unicode_literals
5
+
4
6
from configparser import ConfigParser
5
7
from io import BytesIO
6
8
import copy
15
17
import smtplib
16
18
import sys
17
19
20
+ del absolute_import , print_function , unicode_literals
21
+
18
22
19
23
def message_from_binary (message ):
20
24
return email .message_from_bytes (message )
You can’t perform that action at this time.
0 commit comments