feat: configure wheel building with dependencies #78
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: Format code | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - release | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| format_backend: | |
| name: Format with ruff | |
| runs-on: [ self-hosted, small ] | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: ./.github/workflows/actions/prepare | |
| - run: poetry run ruff check --fix --unsafe-fixes --preview --exit-zero . | |
| - run: poetry run ruff format . | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| fetch: false | |
| default_author: github_actions | |
| message: 'Backend: Auto format' | |
| add: '.' |