Skip to content

Commit

Permalink
feat: github action for running component tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy Kaur <[email protected]>
  • Loading branch information
sskaur committed Sep 20, 2023
1 parent c50d878 commit 931a7a5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-components.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 931a7a5

Please sign in to comment.