diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ef45871..b0b437b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,18 +7,29 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - uses: marian-code/python-lint-annotate@v3 + - name: Checkout repo & prepearing + uses: actions/checkout@v1 + + - name: Set up Python environment + uses: actions/setup-python@v3 with: - python-root-list: "tests/*.py" - extra-pycodestyle-options: "--max-line-length=88" - use-pylint: true python-version: "3.8" + - name: Install pylint + run: | + pip install pylint pylint_junit + + - name: Run pylint + run: | + pylint --output-format=text,pylint_junit.JUnitReporter:lint_result.xml mlops_utilities/ + + - name: Publish Test Report + uses: mikepenz/action-junit-report@v3 + if: always() # always run even if the previous step fails + with: + check_name: JUnit Lint Test Report + report_paths: 'lint_result.xml' - test: + unittest: runs-on: ubuntu-latest steps: - name: Checkout repo & prepearing @@ -44,4 +55,5 @@ jobs: uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails with: + check_name: JUnit Unit Test Report report_paths: 'report.xml' \ No newline at end of file diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..a1a3a2b --- /dev/null +++ b/.pylintrc @@ -0,0 +1,2 @@ +[MASTER] +load-plugins=pylint_junit \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f336fba..62ef0ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mlops-utilities" -version = "0.1.7" +version = "0.2.0" description = "" authors = ["Provectus Team "] readme = "README.md"