-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pylint checking and coverage reporting
- Loading branch information
1 parent
efefe2f
commit ed9baea
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |