diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 00000000..11e07d21 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -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 \ No newline at end of file