Bump black from 25.1.0 to 25.9.0 #166
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 CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| schedule: | |
| - cron: '0 17 * * *' | |
| jobs: | |
| check_code_format: | |
| name: Check code format | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/common | |
| - name: Check code format | |
| run: ./dev.py black-check | |
| check_types: | |
| name: Check types | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/common | |
| - name: Check types | |
| run: ./dev.py check-types | |
| check_lint: | |
| name: Check lint | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/common | |
| - name: Check lint | |
| run: ./dev.py lint | |
| run_tests: | |
| name: Run tests and check coverage | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/common | |
| - name: Run tests and check coverage | |
| run: ./dev.py coverage | |
| build_and_upload: | |
| name: Build and upload | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' || (github.event_name == 'schedule' && github.ref == 'refs/heads/main') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/common | |
| - name: Build the package | |
| run: poetry build | |
| - name: Upload distributable | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-artifacts | |
| path: dist/ |