diff --git a/flytectl/.github/workflows/build.yaml b/flytectl/.github/workflows/build.yaml index 48b9425a89..25759ecc17 100644 --- a/flytectl/.github/workflows/build.yaml +++ b/flytectl/.github/workflows/build.yaml @@ -31,7 +31,7 @@ jobs: GO111MODULE: "on" CI_ENV: "true" with: - args: make install && make test_unit_codecov + args: make install && make test_unit_without_flag - name: Push CodeCov uses: codecov/codecov-action@v1.0.5 with: diff --git a/flytectl/Makefile b/flytectl/Makefile index 43c7aab1ca..601e502569 100644 --- a/flytectl/Makefile +++ b/flytectl/Makefile @@ -35,3 +35,9 @@ install-piptools: doc-requirements.txt: doc-requirements.in install-piptools $(call PIP_COMPILE,doc-requirements.in) +.PHONY: test_unit_without_flag +test_unit_without_flag: + go test ./... -race -coverprofile=coverage.temp.txt -covermode=atomic + cat coverage.temp.txt | grep -v "_flags.go" > coverage.txt + rm coverage.temp.txt + curl -s https://codecov.io/bash > codecov_bash.sh && bash codecov_bash.sh