diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index 0a8245db..00000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: black - -concurrency: - group: '${{ github.workflow }} @ ${{ github.sha }}' - cancel-in-progress: true - -on: - push: - branches: - - main - - 'stable-*' - pull_request_target: - -jobs: - format: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: checkout fork repository - uses: actions/checkout@v3 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.head_ref }} - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - - name: Install required python librairies - run: pip install tox - shell: bash - - - name: Run tox validation - run: tox -e black -vv - shell: bash - - - name: commit and push changes - id: commit - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: 'automated changes - black formatting' - file_pattern: '*.py'