From 69a837012db0c5bfa49b0f33d4a47fbd782a8adc Mon Sep 17 00:00:00 2001 From: Cor Zuurmond Date: Fri, 28 Jan 2022 13:48:58 +0100 Subject: [PATCH] Add workflow for testing --- .github/workflows/workflow.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..8b550ca --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,29 @@ +name: Test + +on: + pull_request: + push: + branches: + - main + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + shell: bash + run: | + sudo apt-get install libsasl2-dev + python -m pip install --upgrade pip + python -m pip install -r test-requirements.txt + + - name: Run pytest + shell: bash + run: pytest tests/