From 38a486ff79e85097e0ecc6076670dced6ba16ae7 Mon Sep 17 00:00:00 2001 From: JVT038 Date: Mon, 29 Jan 2024 16:15:44 +0100 Subject: [PATCH] Create test_app.yml --- .github/workflows/test_app.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test_app.yml diff --git a/.github/workflows/test_app.yml b/.github/workflows/test_app.yml new file mode 100644 index 00000000..47185a2f --- /dev/null +++ b/.github/workflows/test_app.yml @@ -0,0 +1,29 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run unit tests for database + run: python tests/testDatabase.py