aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-05-10 23:07:55 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-05-10 23:55:16 +0400
commit41493dd8f4db721bb285f932415fa60b82d933af (patch)
treeecd2000830012406982ce78c909215419a50fa8b
parentChangelog Discord Invite Regex Changes (diff)
Enable Testing In CI
Uncomments the testing command in CI. It is unclear why but the testing command that is normally used in all our projects causes an import error here, so instead we run with `python -m` to ensure the run directory is added to `sys.path`. Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--.github/workflows/lint-test.yaml (renamed from .github/workflows/lint.yaml)15
1 files changed, 4 insertions, 11 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint-test.yaml
index cbe692f3..a51623cb 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -1,4 +1,4 @@
-name: Lint
+name: Lint & Test
on:
push:
@@ -12,7 +12,7 @@ concurrency:
jobs:
lint:
- name: Run pre-commit & flake8
+ name: Run Linting & Test Suites
runs-on: ubuntu-latest
steps:
@@ -42,15 +42,8 @@ jobs:
run: "flake8 \
--format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s'"
-# - name: Run tests and generate coverage report
-# run: pytest -n auto --cov --disable-warnings -q
-#
-# # This step will publish the coverage reports coveralls.io and
-# # print a "job" link in the output of the GitHub Action
-# - name: Publish coverage report to coveralls.io
-# env:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# run: coveralls
+ - name: Run tests and generate coverage report
+ run: python -m pytest -n auto --cov botcore -q
# Prepare the Pull Request Payload artifact. If this fails, we
# we fail silently using the `continue-on-error` option. It's