Merge branch 'main' into main #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quality Check | |
on: [push, pull_request] | |
jobs: | |
quality-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run Quality Check | |
id: quality_check | |
run: | | |
python ./scripts/check_quality.py | |
- name: Upload Quality Check Summary as Artifact | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: check-quality-summary | |
path: ./check_quality_summary.txt | |
- name: Fail on Errors | |
if: steps.quality_check.outcome == 'failure' | |
run: | | |
echo "Quality check failed due to errors." | |
exit 1 | |