Test Klados reasoner backend #1588
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Klados reasoner backend | |
# This workflow tests whether the backend is up and running. It does this by sending it a POST request, then | |
# checking to see if we get back the expected JSON output. | |
on: | |
schedule: | |
# Run this job at 3am and 3pm UTC, which corresponds to 11am and 11pm EDT | |
- cron: '0 3,15 * * *' | |
# Based on https://github.com/marketplace/actions/deploy-to-github-pages | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Submit a small Phyx file to the backend server | |
id: backendReasonerJob | |
uses: fjogeleit/http-request-action@v1 | |
with: | |
url: "https://reasoner.phyloref.org/reason" | |
method: 'POST' | |
httpsCA: ${{ secrets.REASONER_PHYLOREF_ORG_CERTIFICATE_CHAIN_PEM }} | |
customHeaders: '{"Content-Type": "application/x-www-form-urlencoded", "X-Hub-Signature": "sha1=b5da475370d024275eb410a58236749c31f957b0"}' | |
data: 'jsonldGzipped=H4sIAAAAAAAAA%2B2dbXOjthbHv4qGfZFkxrEBO0%2Fum2a9297MtJtMstsX3e7sKFi21WLEFZDEdyffvUdgYwQC7JjU1V46ndmAHtBfOvpx4Ajr8zfjR4d5IXkKjaExC0M%2FGPZ6j4%2BPXX%2B2cBknky7j0x4cPHX%2FDHrLrL0Hq2t2zdVp5hkdY8wo1GCZ3RP73Or9j3hszLqDk1P79PwEkgMWcYcYw28GjsIZ44Ex%2FPzNmFAehB6eQ4LxM444foCsLk7P%2FYbpeIGN5y8dY0EwN4a2aVsdI6ShK5Lf0SkNsYs48TkJiBfikDIPsQkK2JyIf8MZQY6LxwSNyYR6VKQHiHroLWfOLEK2afbFoch3s1RMOPEcgt4%2FOTPsTQk6hISnIzRhfI5DaN%2BfIMXDrtCybObvsVrjuWPQMbSCTijhsb5w4Yt00TcirbyDhMJ7eu9SNuXYn1FnRBMxacegpC%2FQoeiCI7QH6QiBjiEqU9AxYpOZEo%2BSZH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MceTCU1Gu8Ve3Vy%2B5iyx79XPcrdfLrMKbFsd07jMePz%2BvKl5VJm%2BwbpvW%2BbFlH1uD3vr8oyv6c8NioYO9uAho%2FBsU%2BaMa1n0AAA%3D%3D' | |
timeout: 30000 | |
- name: Check for an incorrect response | |
if: steps.backendReasonerJob.outputs.response != '{"phylorefs":{"#Alligatoridae":["#phylogeny0_node22"]}}' | |
run: echo "::error::Klados reasoner backend failed" && exit 1 | |
- name: Report success unless errored | |
run: echo "::notice::Klados reasoner backend worked correctly" |