From 931a7a53cbc4af150cc28eb1af271a0830846f76 Mon Sep 17 00:00:00 2001 From: Sandy Kaur Date: Thu, 11 May 2023 11:04:41 -0500 Subject: [PATCH] feat: github action for running component tests Signed-off-by: Sandy Kaur --- .github/workflows/test-components.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-components.yml diff --git a/.github/workflows/test-components.yml b/.github/workflows/test-components.yml new file mode 100644 index 00000000..7c5cb810 --- /dev/null +++ b/.github/workflows/test-components.yml @@ -0,0 +1,26 @@ +# Runs unit-style tests when a PR is opened/reopened/updated on the devel branch + +name: Test components +on: + pull_request: + branches: + - devel + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.9 + uses: actions/setup-python@v1 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + + - name: Run component tests with pytest + run: pytest tests/component