diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 250139f..4a572ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,10 @@ jobs: run: | task test -- -s -v + - name: Run lint + run: | + task lint -- --errors-only + - name: Release if: startsWith(github.ref, 'refs/tags/') run: | diff --git a/Taskfile.yml b/Taskfile.yml index 3b4d90b..fc08f64 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,8 +4,10 @@ tasks: clean: desc: clean up cmds: - - rm -rf .ten .pytest_cache + - find . -type d -name .pytest_cache -exec rm -rf {} \; || true - find . -type d -name __pycache__ -exec rm -rf {} \; || true + - find . -type d -name .ten -exec rm -rf {} \; || true + - find . -name .coverage -exec rm -f {} \; || true test: desc: run tests @@ -24,4 +26,4 @@ tasks: env: PYTHONPATH: "{{.USER_WORKING_DIR}}/.ten/app/ten_packages/system/ten_runtime_python/lib:{{.USER_WORKING_DIR}}/.ten/app/ten_packages/system/ten_runtime_python/interface" cmds: - - pylint ./*.py \ No newline at end of file + - pylint ./*.py {{ .CLI_ARGS }}