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" ./*