You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2022/01/22 13:58:07 UTC

[incubator-ponymail-foal] branch master updated: Setup for integration tests

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 21dd6a8  Setup for integration tests
21dd6a8 is described below

commit 21dd6a8550e48355efb59ba61557bb80ed9b8c68
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jan 22 13:57:59 2022 +0000

    Setup for integration tests
---
 .github/workflows/integration-tests.yml | 49 +++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml
new file mode 100644
index 0000000..18bb670
--- /dev/null
+++ b/.github/workflows/integration-tests.yml
@@ -0,0 +1,49 @@
+name: Integration Tests
+
+# TODO: add some useful tests
+
+on:
+  # Don't currently want this to run every time
+
+  workflow_dispatch:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    services:
+
+      elasticsearch:
+        image: docker.elastic.co/elasticsearch/elasticsearch:7.13.1
+        env:
+          discovery.type: single-node
+          xpack.security.enabled: false
+        options: >-
+          --health-cmd "curl http://localhost:9200/_cluster/health"
+          --health-interval 10s
+          --health-timeout 5s
+          --health-retries 10
+        ports:
+        # <port on host>:<port on container>
+        - 9200:9200
+    steps:
+    - uses: actions/checkout@master
+      with:
+        persist-credentials: false
+    - name: Setup python
+      uses: actions/setup-python@v2
+      with:
+        python-version: '3.7'
+        architecture: x64
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install -r tools/requirements.txt
+        pip install html2text # optional dependency, but needed for tests
+    - name: Basic test
+      run: |
+        curl -sq http://localhost:9200/_cluster/health?pretty"
+    - name: Database setup
+      run: |
+        cd tools
+        ./setup.py --defaults --devel
\ No newline at end of file