Skip to content

[pre-commit.ci] pre-commit autoupdate #131

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #131

Workflow file for this run

# GitHub Action Workflow enforcing our code style.
name: Lint, Build & Deploy
# Trigger the workflow on both push (to the main repository)
# and pull requests (against the main repository, but from any repo).
on: [push, pull_request]
# Brand new concurrency setting! This ensures that not more than one run can be triggered for the same commit.
# It is useful for pull requests coming from the main repository since both triggers will match.
concurrency: lint-${{ github.sha }}
jobs:
lint:
runs-on: ubuntu-latest
env:
# Set an environment variable to select pip's cache directory for us to actually cache between runs.
PIP_CACHE_DIR: /tmp/pip-cache-dir
# The Python version your project uses. Feel free to change this if required.
PYTHON_VERSION: 3.9
steps:
# Checks out the repository in the current folder.
- name: Checks out repository
uses: actions/checkout@v2
# Set up the right version of Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
id: python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run pre-commit hooks.
uses: pre-commit/action@v2.0.3