Skip to content

Commit

Permalink
Playing around with pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Niedermaier committed Oct 19, 2024
1 parent 6cf6ef6 commit 1ccc2b7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: pytest

on:
push:
schedule:
- cron: "0 0 * * *"

jobs:
docker:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Start containers
run: docker-compose -f ".devcontainer/virtual/docker-compose.yml" up -d --build


- name: Pytest Modbus
run: pytest tests/test_modbus.py

- name: Stop containers
if: always()
run: docker-compose -f ".devcontainer/virtual/docker-compose.yml" down

0 comments on commit 1ccc2b7

Please sign in to comment.