From ed9baea3beafed2927de89c47cde249ba4b33c8f Mon Sep 17 00:00:00 2001 From: Adrian Suarez Date: Tue, 5 Sep 2023 20:47:08 -0400 Subject: [PATCH] Add pylint checking and coverage reporting --- .github/workflows/run-tests.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8a3a79f..f7d5ebe 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,5 +15,22 @@ jobs: run: | git config --global user.name "Testy McTesterson" git config --global user.email "tmctesterson@users.noreply.github.com" - - 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