From 87403cb37e89434130746717cc0dcf31f49f46cb Mon Sep 17 00:00:00 2001 From: commitverse Date: Tue, 8 Apr 2025 00:13:46 +0530 Subject: [PATCH] Add CI workflow to run tests using GitHub Actions --- .github/workflows/python-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..0631237 --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -0,0 +1,30 @@ +name: Python package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + - name: Run tests + run: | + pytest