From 7a29e41cd3d14f7d8936003d660814461ce4ea01 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:24:40 +0530 Subject: Test --- .github/workflows/ruff-lint.yml | 6 +++--- src/tests/test.py | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/tests/test.py diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index e34dcb7..76e183c 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -23,12 +23,12 @@ jobs: python-version: '3.11' - name: Lint - uses: chartboost/ruff-action@v1 + uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b with: args: check changed-files: 'true' - - uses: chartboost/ruff-action@v1 + - uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b with: args: format --diff - changed-files: true \ No newline at end of file + changed-files: 'true' \ No newline at end of file diff --git a/src/tests/test.py b/src/tests/test.py new file mode 100644 index 0000000..46803bd --- /dev/null +++ b/src/tests/test.py @@ -0,0 +1,7 @@ +from typing import List + +import os + +def sum_even_numbers(numbers: List[int]) -> int: + """Given a list of integers, return the sum of all even numbers in the list.""" + return sum(num for num in numbers if num % 2 == 0) \ No newline at end of file -- cgit v1.2.3