From d82b28aac27ab15058a40d732f7f1afc62333c2b Mon Sep 17 00:00:00 2001 From: Ray Huang Date: Fri, 5 Dec 2025 22:25:04 +0800 Subject: [PATCH] ci: add pytest to github action Signed-off-by: Ray Huang --- .github/workflows/{pylint.yml => lint_and_test.yml} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename .github/workflows/{pylint.yml => lint_and_test.yml} (82%) diff --git a/.github/workflows/pylint.yml b/.github/workflows/lint_and_test.yml similarity index 82% rename from .github/workflows/pylint.yml rename to .github/workflows/lint_and_test.yml index 0e3214f..5d54572 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/lint_and_test.yml @@ -1,11 +1,10 @@ -name: Pylint - +name: Python linting and testing on: push: pull_request: jobs: - build: + lint_and_test: runs-on: ubuntu-latest strategy: matrix: @@ -34,3 +33,8 @@ jobs: run: | source .venv/bin/activate pylint $(git ls-files '*.py') + + - name: Running the tests with pytest + run: | + source .venv/bin/activate + python -m pytest