Enhancement: POC add unit tests for custom component #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
run_pytest: | |
name: Run tests | |
strategy: | |
matrix: | |
python-version: [3.11] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "⤵️ Check out code from GitHub" | |
uses: actions/checkout@v4 | |
- name: "⚙️ Set up Python ${{ matrix.python-version }}" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: "⚙️ Set up Poetry" | |
uses: abatilo/actions-poetry@v2.3.0 | |
- name: "⚙️ Install dependencies" | |
run: poetry install | |
- name: "🚀 Run all tests" | |
run: poetry run pytest tests -v |