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 May 22, 2023
1 parent 99ef801 commit ae70391
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test
on:
# Run workflow when a PR is opened, reopened, or updated on its head branch
pull_request:
branches:
- devel

jobs:
build:
runs-on:
- ubuntu-latest

steps:
# Checkout repo
- uses: actions/checkout@v3

# Dependencies
- 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 -r requirements.txt
# Test
- name: Run component tests with pytest
run: pytest tests/component
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
grpcio
grpcio-tools
pytest

0 comments on commit ae70391

Please sign in to comment.