Skip to content

Commit

Permalink
Update GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
isudak authored Apr 1, 2024
1 parent a4fa8c9 commit 6d9b96a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preflight-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
- name: Generate Preflight Summary
run: |
{
JOB_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/${{github.event.workflow_run.id }}"
printf "[%s]($JOB_URL \"Go to Job Summary\")\n\n" "$(< test-summary.md)"
printf "### Code Coverage Summary\n"
cat test-summary.md
printf "\n### Code Coverage Summary\n"
cat code-coverage-results.md
JOB_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/${{github.event.workflow_run.id }}"
printf "\nView full reports on the [Job Summary]($JOB_URL \"Go to Job Summary\") page\n\n"
cat {pylint,black,isort,bandit}-report.md > linter-reports.md 2>/dev/null || true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
filters: |
py:
- added|modified: '**/*.py'
cacher:
src:
- added|modified: 'alma_tests_cacher/**/*.py'
- added|modified: '*.py'
Expand All @@ -80,10 +80,10 @@ jobs:
--cov-report=term | tee $REPORTS_DIR/pytest-output.txt"
- name: Run pylint
if: ${{ steps.changed-files.outputs.cacher == 'true' }}
if: ${{ steps.changed-files.outputs.src == 'true' }}
run: |
docker compose run --rm cacher bash -c "
pylint --exit-zero ${{ steps.changed-files.outputs.cacher_files }} \
pylint --exit-zero ${{ steps.changed-files.outputs.src_files }} \
| tee $REPORTS_DIR/pylint-report.txt"
- name: Run black
Expand All @@ -101,10 +101,10 @@ jobs:
| tee >(sed 's/\x1B\[[0-9;]*m//g' > $REPORTS_DIR/isort-report.txt)"
- name: Run bandit
if: ${{ steps.changed-files.outputs.cacher == 'true' }}
if: ${{ steps.changed-files.outputs.src == 'true' }}
run: |
docker compose run --rm cacher bash -c "
bandit -c pyproject.toml ${{ steps.changed-files.outputs.cacher_files }} \
bandit -c pyproject.toml ${{ steps.changed-files.outputs.src_files }} \
| tee >(sed 's/\x1B\[[0-9;]*m//g' > $REPORTS_DIR/bandit-report.txt)"
- name: Generate .md reports
Expand Down

0 comments on commit 6d9b96a

Please sign in to comment.