Skip to content

Commit b3c8abf

Browse files
committed
WIP
1 parent 68e699d commit b3c8abf

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/zeyple.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ jobs:
2828
sudo apt-get install debconf-utils
2929
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local only'"
3030
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
3232
sudo gem install --no-document fpm
3333
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
3535
- name: Build deb package
3636
run: ./fpm/create
3737
- name: End to end test using deb package
3838
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
4143
- name: Upload deb package
4244
uses: actions/upload-artifact@v1
4345
with:

tests/test_zeyple.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
from zeyple import zeyple as z
5+
46
from configparser import ConfigParser
57
from textwrap import dedent
68
from unittest.mock import Mock
7-
import gpg
89
import os
910
import re
1011
import shutil
1112
import subprocess
1213
import tempfile
1314
import unittest
1415

15-
from zeyple import zeyple as z
16-
1716
KEYS_FNAME = os.path.join(os.path.dirname(__file__), 'keys.gpg')
1817
TEST1_ID = 'D6513C04E24C1F83'
1918
TEST1_EMAIL = '[email protected]'

0 commit comments

Comments
 (0)