From 2c28a278ecde65d04e9204a394316a1885646e84 Mon Sep 17 00:00:00 2001 From: "John C. Reid" Date: Mon, 6 Jan 2025 19:01:55 -0800 Subject: [PATCH] Add CI workflow to run tests --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0cd1fb4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Run Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt || true # Skip if no requirements.txt + + - name: Run tests + run: python -m unittest discover test