From f148d1946c94a63ea94752d104a1d955974f2477 Mon Sep 17 00:00:00 2001 From: hdelc Date: Wed, 22 Mar 2023 16:10:37 -0400 Subject: [PATCH] BUILD: Add unit test checks to CI --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..84efb77 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +--- +name: Testing + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + Unit: + runs-on: ubuntu-latest + steps: + # check-out repo + - name: Checkout repository + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + - name: Setup Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + # install requirements (including dev dependencies) + - name: Install requirements + run: | + python -m pip install --upgrade pip + make deps + # run linters + - name: Run tests + run: | + set -o pipefail + make test + \ No newline at end of file