aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-07 05:28:07 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-06-07 05:28:29 +0300
commit13442f859f452578397766dedc7904928794610a (patch)
tree52069485875644e07f2733b3b0680f0231ffd33a /.github
parentMerge pull request #1625 from python-discord/docker-compose-restart-policy (diff)
Switches To Pytest As Test Runner
Switches the test runner from unittest to pytest, to allow the usage of plugins such as xdist. This commit also adds pytest-cov purely as a generator for .coverage files. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint-test.yml5
1 files changed, 1 insertions, 4 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index d96f324ec..370b0b38b 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -97,12 +97,9 @@ jobs:
--format='::error file=%(path)s,line=%(row)d,col=%(col)d::\
[flake8] %(code)s: %(text)s'"
- # We run `coverage` using the `python` command so we can suppress
- # irrelevant warnings in our CI output.
- name: Run tests and generate coverage report
run: |
- python -Wignore -m coverage run -m unittest
- coverage report -m
+ pytest -n auto --cov bot --disable-warnings -q
# This step will publish the coverage reports coveralls.io and
# print a "job" link in the output of the GitHub Action