chore(deps): bump actions/download-artifact in /.github/workflows #478
Workflow file for this run
This file contains hidden or 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: Python Linting | |
| on: [push, pull_request] | |
| jobs: | |
| python-linting: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install linters | |
| run: pip install ruff pylint | |
| - name: Run Ruff | |
| run: | | |
| echo "### Ruff Linting" >> $GITHUB_STEP_SUMMARY | |
| ruff src/ | tee ruff_output.txt | |
| if [ -s ruff_output.txt ]; then | |
| echo "❌ Ruff found issues" >> $GITHUB_STEP_SUMMARY | |
| exit 1 | |
| else | |
| echo "✅ Ruff passed with no issues" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| - name: Run Pylint | |
| env: | |
| PYTHONPATH: ./src | |
| run: |- | |
| echo "### Pylint Linting" >> $GITHUB_STEP_SUMMARY | |
| pylint src/ | tee pylint_output.txt | |
| if grep -q "rated at" pylint_output.txt; then | |
| echo "✅ Pylint completed" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| if grep -q "Your code has been rated at 10.00/10" pylint_output.txt; then | |
| echo "🏅 Perfect score from Pylint!" >> $GITHUB_STEP_SUMMARY | |
| fi |