summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-09-06 14:24:40 +0530
committerGitHub <noreply@github.com>2024-09-06 14:24:40 +0530
commit7a29e41cd3d14f7d8936003d660814461ce4ea01 (patch)
treef802521c99ca1d437c8498c1a66baaa24e1a6ada
parent5a6c38d483a176734c9777e62baeb94a66b67176 (diff)
downloadvyos-workflow-test-temp-7a29e41cd3d14f7d8936003d660814461ce4ea01.tar.gz
vyos-workflow-test-temp-7a29e41cd3d14f7d8936003d660814461ce4ea01.zip
Test
-rw-r--r--.github/workflows/ruff-lint.yml6
-rw-r--r--src/tests/test.py7
2 files changed, 10 insertions, 3 deletions
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