From b15d9011fb32e464602df4545b038f35abcda186 Mon Sep 17 00:00:00 2001 From: Muhammad Fiaz Date: Sat, 16 Dec 2023 16:41:09 +0530 Subject: [PATCH] Create python-package.yaml --- .github/workflows/python-package.yaml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/python-package.yaml diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml new file mode 100644 index 0000000..119e703 --- /dev/null +++ b/.github/workflows/python-package.yaml @@ -0,0 +1,30 @@ +name: Run Tests + +on: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Python dependencies + uses: py-actions/py-dependency-install@v4 + with: + path: "requirements.txt" + update-pip: "true" + update-setuptools: "true" + update-wheel: "true" + + - name: Run tests + run: pytest tests