diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000..dad8cb93 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,30 @@ +name: Run linting and suggest changes + +on: + pull_request: + +permissions: + contents: read + pull-requests: write + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10'] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -r requirements/base.txt + - name: Check markdown format + run: mdformat docs/ + - uses: parkerbxyz/suggest-changes@v1 + with: + comment: 'Please commit the suggested changes from mdformat' + event: 'REQUEST_CHANGES' \ No newline at end of file