Skip to content

Commit

Permalink
Run Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Sep 27, 2024
1 parent 2704e4c commit ba17087
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba17087

Please sign in to comment.