From a0bc35baeccadc99591403643f0ba7503fdde22b Mon Sep 17 00:00:00 2001 From: pranshu-saraswat Date: Thu, 18 Sep 2025 17:38:18 +0530 Subject: [PATCH] feat: Add GitHub Actions workflow with caching --- .github/workflows/python-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/python-ci.yml diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml new file mode 100644 index 000000000..48b1c9b2a --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -0,0 +1,32 @@ +name: Python CI + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.13' # Set your specific Python version here + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-test.txt + + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install -r requirements-test.txt + + # Add more steps here, like running your tests + - name: Run tests + run: | + pytest # Replace with your test command \ No newline at end of file