Skip to content

Commit

Permalink
Run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquist committed Jun 22, 2024
1 parent bb7ef77 commit d2a9680
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ __pycache__
.Python
.env
.git
test.py
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
- name: Validate Python code with flake8
run: pipenv run flake8 --select BLK *.py

- name: Run tests
run: pipenv run pytest --junitxml=test-results.xml

- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results.xml

build:
runs-on: ubuntu-latest
strategy:
Expand Down
4 changes: 4 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ pymodbus = "*"
flake8 = "*"
black = "*"
flake8-black = "*"
pytest = "*"

[requires]
python_version = "3.12"
31 changes: 29 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

0 comments on commit d2a9680

Please sign in to comment.