diff --git a/.github/workflows/zeyple.yml b/.github/workflows/zeyple.yml index 8f65669..263933b 100644 --- a/.github/workflows/zeyple.yml +++ b/.github/workflows/zeyple.yml @@ -28,16 +28,18 @@ jobs: sudo apt-get install debconf-utils sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local only'" sudo debconf-set-selections <<< "postfix postfix/mailname string localhost" - sudo apt-get install -y mailutils ruby ruby-dev rubygems build-essential sudo gnupg python3-gpg + sudo apt-get install -y mailutils ruby ruby-dev rubygems build-essential sudo gnupg python3-gpg libgpgme11 libgpgme-dev sudo gem install --no-document fpm python -m pip install --upgrade pip setuptools wheel - python -m pip install --upgrade tox + python -m pip install --upgrade mock pycodestyle pytest pytest-cov - name: Build deb package run: ./fpm/create - name: End to end test using deb package run: sudo bash -ex ./tests/e2e.sh - - name: Test with tox - run: tox + - name: Lint with pycodestyle + run: pycodestyle --show-pep8 --max-line-length=100 + - name: Test with pytest + run: env PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages python -m pytest --cov=zeyple/ --cov-report=html - name: Upload deb package uses: actions/upload-artifact@v1 with: