Bump pre-commit/action from 2.0.3 to 3.0.1 #316
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: Tests | |
on: | |
push: | |
branches: | |
- '*' | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
jobs: | |
Safety: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2.2.2 | |
with: | |
python-version: 3.7 | |
- name: Install Pipenv | |
uses: dschep/install-pipenv-action@v1 | |
- name: Install Safety | |
run: pip install safety | |
- name: Check dependencies | |
run: pipenv lock --dev --requirements | safety check --stdin | |
Linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2.2.2 | |
- name: Hash Python version | |
id: hash | |
run: echo ::set-output name=hash::$(python --version | sha256sum | cut -d' ' -f1) | |
- name: Restore cache | |
uses: actions/cache@v2.1.6 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ steps.hash.outputs.hash }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run pre-commit | |
uses: pre-commit/action@v3.0.1 |