Skip to content

Commit

Permalink
Add first pytest preparement
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWinterstein authored Jun 20, 2022
1 parent 59bb1d7 commit 78917cb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
run: |
pytest
2 changes: 2 additions & 0 deletions toogoodtogo_ha_mqtt_bridge/tests/test_cron.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_dummy():
pass

0 comments on commit 78917cb

Please sign in to comment.