Skip to content

do not write directives to DB if in preview mode #37

do not write directives to DB if in preview mode

do not write directives to DB if in preview mode #37

Workflow file for this run

#SPDX-FileCopyrightText: 2023 Intevation GmbH
#SPDX-License-Identifier: AGPL-3.0-or-later
#
name: "Unit tests"
on: [push, pull_request]
jobs:
unittests:
runs-on: ubuntu-20.04
env:
GPGME_VERSION: 1.20.0
name: Run unit tests with pytest
strategy:
fail-fast: false
matrix:
python-version: ['3.7']
# python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pgpme dev
run: DEBIAN_FRONTEND=noninteractive sudo -E apt-get update -qq && DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y libgpgme-dev swig
- name: Install test dependencies
run: pip install pytest
- name: Install gpgme python bindings
run: ./.github/workflows/scripts/install-gpgme.sh
- name: Install dependencies
run: pip install -e .
- name: Run basic testsuite
run: pytest
env:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/local/lib
PYTHONPATH: /usr/local/lib/python3.7/site-packages/