Fix arg placement #10
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
name: Run tests of relman.py | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure arbitrary Git user | |
run: | | |
git config --global user.name "Testy McTesterson" | |
git config --global user.email "[email protected]" | |
- uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' # caching pip dependencies | |
- name: Install Python dependencies | |
run: 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 |