diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fac8de5..c8bb4ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,44 @@ concurrency: jobs: + testing-file-existence: + runs-on: ubuntu-latest + steps: + - name: Check if coverage report exists + id: check-cov + run: | + if [ -f coverage.xml ]; then + coverage_exists=true + else + coverage_exists=false + fi + echo ${coverage_exists} + echo "coverage_exists=${coverage_exists}" >> $GITHUB_OUTPUT + - name: test output previous step + run: | + echo ${{ steps.check-cov.outputs.coverage_exists }} + echo ${{ steps.check-cov.outputs.coverage_exists == 'true' }} + - name: Export coverage report (if existing) + if: steps.check-coverage-report.ouputs.coverage_exists == 'true' + run: echo "exporting" + - name: Check if coverage report exists II + id: check-coverage-report + run: | + touch coverage.xml + if [ -f coverage.xml ]; then + coverage_exists=true + else + coverage_exists=false + fi + echo ${coverage_exists} + echo "coverage_exists=${coverage_exists}" >> $GITHUB_OUTPUT + - name: test output previous step + run: | + echo ${{ steps.check-coverage-report.outputs.coverage_exists }} + echo ${{ steps.check-coverage-report.outputs.coverage_exists == 'true' }} + - name: Export coverage report (if existing) II + if: steps.check-coverage-report.outputs.coverage_exists == 'true' + run: echo "exporting" pwd: runs-on: ubuntu-latest steps: diff --git a/workflow_testing/__init__.py b/workflow_testing/__init__.py index c70f470..97ac86c 100644 --- a/workflow_testing/__init__.py +++ b/workflow_testing/__init__.py @@ -4,8 +4,8 @@ logger = logging.getLogger(__name__) -__version__ = "0.0.0" +__version__ = "6.0.1" # other stuff -stuff = 1.0 \ No newline at end of file +stuff = 1.2 \ No newline at end of file