Merge pull request #150 from freol35241/dependabot/pip/pytest-homeass… #128
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: Testing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: Build and run Dev Container task | |
uses: devcontainers/[email protected] | |
with: | |
runCmd: | | |
python -m pytest -p no:homeassistant tests/pytest/test_databases.py | |
bats: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetches all history of all tags and branches, necessary for running migration tests | |
- name: Build and run Dev Container task | |
uses: devcontainers/[email protected] | |
with: | |
runCmd: | | |
bats tests/bats |