From 2409aabf94b0cadb1b93ebf6e4f9266c7758f887 Mon Sep 17 00:00:00 2001 From: ronilpatil Date: Fri, 29 Mar 2024 22:57:44 +0530 Subject: [PATCH] configure CI pipeline --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..d8bda6f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +# .github/workflows/ci.yml + +name: ci pipeline + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: set-up python 3.9 + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: run test file + run: | + pytest ./tests