change docker action to use large runner #136
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: Black Python Formatter | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
# Name the Job | |
name: Python Formatter | |
# Set the agent to run on | |
runs-on: ubuntu-20.04 | |
################## | |
# Load all steps # | |
################## | |
steps: | |
########################## | |
# Checkout the code base # | |
########################## | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
################################### | |
# Run Formatter against code base # | |
################################### | |
- name: Format Python Files | |
uses: github/super-linter@v4 | |
env: | |
LINTER_RULES_PATH: / | |
VALIDATE_ALL_CODEBASE: false | |
VALIDATE_PYTHON_BLACK: true | |
PYTHON_BLACK_CONFIG_FILE: pyproject.toml | |
DEFAULT_BRANCH: master | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |