Skip to content

Update coverage in README #34

Update coverage in README

Update coverage in README #34

Workflow file for this run

name: Apply Black & Isort
on:
push:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.head_ref }}
- name: black and isort
run: |
pip install black isort
black .
isort .
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'github-actions'
git config --global user.email 'noreply@github.com'
git remote set-url origin https://x-access-token:${{ secrets.MY_GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated fixes"
git push