mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
25 lines
389 B
YAML
25 lines
389 B
YAML
|
name: pre-commit
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
pre-commit:
|
||
|
runs-on: ubuntu-20.04
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
|
||
|
- uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: 3.9
|
||
|
|
||
|
- uses: pre-commit/action@v2.0.0
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|