Patched manifest to exclude pycache and egg-info #294
Workflow file for this run
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: Autoformat and Lint | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
autoformat: | |
name: Autoformat and Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 🛎 Checkout | |
if: github.event.pull_request.user.login != 'dependabot[bot]' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.WORKFLOW_COMMIT }} | |
- name: 🤖🛎 Bot Checkout | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: 📦 Install dependencies | |
run: pip install .[dev] | |
- name: 🔃 Sort Imports | |
run: isort . | |
- name: 📝 Format Code | |
run: black . | |
- name: ✅ Commit code format changes | |
if: github.event.pull_request.user.login != 'dependabot[bot]' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Autoformat code" | |
- name: 🔍 Lint | |
run: pylama |