From 8c8616d5c363789e2b3ceb6655b86cdb3149151f Mon Sep 17 00:00:00 2001 From: CodingBunny06 <210141639+CodingBunny06@users.noreply.github.com> Date: Sat, 7 Nov 2026 22:52:24 +0530 Subject: [PATCH] Add automated testing with GitHub Actions --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/tests.yml create mode 100644 .gitignore diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..2fba5d7 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ + +name: Gradient Explorer Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: python -m pytest -v diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e9b1e4c --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Python cache +__pycache__/ +*.py[cod] +.pytest_cache/ + +# Virtual environments +.venv/ +.venv-*/ +venv/ + +# Environment variables +.env \ No newline at end of file