Skip to content

Commit

Permalink
temporary fix until issue #181 is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis-Mittenzwei committed Sep 10, 2024
1 parent 7b88101 commit 21e1325
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,29 @@ jobs:
with:
path: ./artifacts

- name: Copy Artifacts into Root Folder
working-directory: ./artifacts
run: |
cp .coverage/.coverage ../
cp .lint.txt/.lint.txt ../

- name: Generate Report
run: poetry run nox -s report -- -- --format json | tee metrics.json

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: metrics.json
path: metrics.json

- name: Generate GitHub Summary
run: |
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
poetry run nox -s report -- -- --format markdown >> $GITHUB_STEP_SUMMARY
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
echo -e "\n\n# Static Code Analysis\n" >> $GITHUB_STEP_SUMMARY
cat .lint.txt >> $GITHUB_STEP_SUMMARY
# can be used again if “issue #181” is closed
# https://github.com/exasol/python-toolbox/issues/181
# - name: Copy Artifacts into Root Folder
# working-directory: ./artifacts
# run: |
# cp .coverage/.coverage ../
# cp .lint.txt/.lint.txt ../
#
# - name: Generate Report
# run: poetry run nox -s report -- -- --format json | tee metrics.json
#
# - name: Upload Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: metrics.json
# path: metrics.json

# - name: Generate GitHub Summary
# run: |
# echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
# poetry run nox -s report -- -- --format markdown >> $GITHUB_STEP_SUMMARY
# echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
# poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
# echo -e "\n\n# Static Code Analysis\n" >> $GITHUB_STEP_SUMMARY
# cat .lint.txt >> $GITHUB_STEP_SUMMARY

0 comments on commit 21e1325

Please sign in to comment.