From 519a0b9ea862b511cbcfaaf79dab28397dc9b5c2 Mon Sep 17 00:00:00 2001 From: ipitio <21136719+ipitio@users.noreply.github.com> Date: Sat, 19 Oct 2024 05:23:05 -0400 Subject: [PATCH] tests --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6205302 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: tests + +on: + pull_request: + branches: + - master + +defaults: + run: + # GitHub Actions run without a TTY device. This is a workaround to get one, + # based on https://github.com/actions/runner/issues/241#issuecomment-2019042651 + shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"' + +jobs: + inference: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run tests + run: | + docker run \ + -v ./src:/app \ + -v ./pdf:/app/pdf \ + $(docker build -q ./src) \ + bash /app/test/example.sh