From 63a1340c37a7370d99e5b0a64c57bb64d54574b4 Mon Sep 17 00:00:00 2001 From: Daniel Young <35309995+danyoungday@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:11:56 -0700 Subject: [PATCH] Create yaml file for ELUC use case CI --- .github/workflows/eluc.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/eluc.yml diff --git a/.github/workflows/eluc.yml b/.github/workflows/eluc.yml new file mode 100644 index 0000000..25317af --- /dev/null +++ b/.github/workflows/eluc.yml @@ -0,0 +1,34 @@ +# This runs the unit tests for the ELUC use case + +name: ELUC Use Case Python Unit Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + 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: Change working directory + run: cd use_cases/eluc + - name: Set PYTHONPATH + run: export PYTHONPATH=$PWD + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run unit tests + run: python -m unittest + - name: Lint with PyLint + run: pylint --ignore="demo" ./*