From cae6df43f000b84915a18d69b320ac94843ea8f2 Mon Sep 17 00:00:00 2001 From: Kyriaki Darivaki <115654088+kiridarivaki@users.noreply.github.com> Date: Thu, 25 Apr 2024 22:00:14 +0300 Subject: [PATCH] added GitHub Actions workflow for running tests with pybuilder --- .github/workflows/pyb-tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pyb-tests.yml diff --git a/.github/workflows/pyb-tests.yml b/.github/workflows/pyb-tests.yml new file mode 100644 index 0000000..ece28d1 --- /dev/null +++ b/.github/workflows/pyb-tests.yml @@ -0,0 +1,33 @@ + +name: PyBuilder Test CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Set PYTHONPATH + run: export PYTHONPATH=$PYTHONPATH:/skillsync + + - name: Navigate to project directory + run: cd skillsync + + - name: Install PyBuilder + run: pip install pybuilder + + - name: Run PyBuilder tests + run: pyb run_unit_tests