From 5ee6ec31b33bcfecff63ee07f17234b3fa22c3e7 Mon Sep 17 00:00:00 2001 From: pstlouis Date: Wed, 8 Jan 2025 14:57:57 -0500 Subject: [PATCH] add gh action Signed-off-by: pstlouis --- .github/workflows/pr-tests.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-tests.yaml diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml new file mode 100644 index 0000000..1e2d41e --- /dev/null +++ b/.github/workflows/pr-tests.yaml @@ -0,0 +1,24 @@ +name: Python tests + +on: + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./server + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: abatilo/actions-poetry@v4 + - name: Install dependencies + run: | + poetry install + - name: Test with pytest + run: | + pytest \ No newline at end of file