Skip to content

Commit

Permalink
Add pylint checking and coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansuarez committed Sep 6, 2023
1 parent efefe2f commit ed9baea
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,22 @@ jobs:
run: |
git config --global user.name "Testy McTesterson"
git config --global user.email "[email protected]"
- name: Invoke test.py
run: ./test.py
- name: Install pip and Python packages
run: |
apt update
apt install -y python3-pip
pip install pylint pytest coverage
- name: Invoke pylint
run: pylint -E *.py
- name: Invoke pytest
run: pytest test.py --junit-xml=results.xml
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: results.xml
path: results.xml
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage_info/html

0 comments on commit ed9baea

Please sign in to comment.