From 7b7801955a83c06f53cdab186fd9fb7b728bc5ac Mon Sep 17 00:00:00 2001 From: Seyed Yahya Shirazi Date: Thu, 4 Jul 2024 07:12:51 -0700 Subject: [PATCH] Add GH actions for unit tests --- .github/workflows/python-app.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..a259840 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,28 @@ +name: Python application + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + python -m unittest discover -s lineNdots/tests + +