mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-29 13:03:44 +03:00
45a732f1db
* Prevent duplicate CI runs * Trigger CI on pull requests from forks
26 lines
459 B
YAML
26 lines
459 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox
|
|
- name: Run pre-commit 💅
|
|
run: tox
|
|
env:
|
|
TOXENV: pre-commit
|