From fb409292dd0aab261c9ec68380240e3868f90225 Mon Sep 17 00:00:00 2001 From: Brent Barbachem Date: Mon, 19 Feb 2024 12:10:59 -0500 Subject: [PATCH] Create python-app.yml Added a new workflow to run the unit tests. Note: unit tests are not complete, but the workflow in place should assist with future pushes. --- .github/workflows/python-app.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 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..d1246d8 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,37 @@ +# 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: + types: + - opened + - edited + +jobs: + systems-tests: + runs-on: ${{ matrix.os }} + name: ${{matrix.os}}-${{matrix.python-version}} + strategy: + max-parallel: 1 + matrix: + os: [ubuntu-latest] + python-version: ["3.10"] + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Local install + run: | + python -m pip install . --upgrade + - name: Install Test Deps + run: | + python -m pip install -e .[tests] + - name: Tests + run: | + pytest --cov=tests