From ba170871365215951f64ca5dd22a87ec2ad3ae7c Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:19:07 +0100 Subject: [PATCH] Run Unit Tests --- .github/workflows/code-test.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/code-test.yml diff --git a/.github/workflows/code-test.yml b/.github/workflows/code-test.yml new file mode 100644 index 0000000..08e78a1 --- /dev/null +++ b/.github/workflows/code-test.yml @@ -0,0 +1,38 @@ +name: Code Test + +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + +jobs: + unit-test: + name: Run Unit Tests + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install Poetry + run: pipx install poetry + + - name: Install Python 3.12 with Poetry Cache + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + cache: "poetry" + + - name: Set up Just + uses: extractions/setup-just@v2 + + - name: Install Poetry Dependencies + run: just install + + - name: Run Unit Tests + run: just unit-test