2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-12 02:02:59 +00:00
InvenTree/.github/workflows/pr_checks.yaml
2021-12-02 12:32:20 +01:00

50 lines
947 B
YAML

# Checks for each PR
name: PR checks
on:
push:
branches-ignore:
- l10*
pull_request:
branches-ignore:
- l10*
# inputs:
# python_version:
# description: “Python version”
# default: 3.7
jobs:
check_version:
name: check version number
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Check version number
run: |
python3 ci/check_version_number.py --branch ${{ github.base_ref }}
pep_style:
needs: check_version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install deps
run: |
pip install flake8==3.8.3
pip install pep8-naming==0.11.1
- name: flake8
run: |
flake8 InvenTree