Tidy up dockerfile #130
Workflow file for this run
This file contains 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: Code Formatting | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request: | |
types: | |
- opened | |
- ready_for_review | |
- reopened | |
jobs: | |
ci: | |
runs-on: 'ubuntu-latest' | |
name: PR Formatter | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Format the code | |
uses: psf/black@stable | |
with: | |
options: "--check --diff" | |
src: "." | |
- name: Check-in updated code | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
committer_name: GitHub Actions | |
committer_email: [email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |