From 8dfffd83c2b3d9b1bd1a77895d5b255c3ba63811 Mon Sep 17 00:00:00 2001 From: Nick Ferguson <98440329+itprodirect@users.noreply.github.com> Date: Tue, 3 Jun 2025 19:41:58 -0400 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1f6c3119 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install pytest + - name: Run tests + run: | + if find . -maxdepth 2 -name "test_*.py" -o -path "*/tests/*" | grep -q .; then + pytest + else + echo "No tests found. Skipping pytest." + fi