[6.12.z] Introduce new project code standards #686
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
# CI stages to execute against Pull Requests | |
name: Airgun - CI | |
on: | |
pull_request: | |
types: ["opened", "synchronize", "reopened"] | |
env: | |
PYCURL_SSL_LIBRARY: openssl | |
jobs: | |
codechecks: | |
name: Code Quality | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11'] | |
steps: | |
- name: Checkout Airgun | |
uses: actions/checkout@v2 | |
- name: Set Up Python-${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
pip install -U pip | |
pip install -U -r requirements.txt -r requirements-optional.txt | |
- name: Pre Commit Checks | |
uses: pre-commit/[email protected] | |
- name: Analysis (git diff) | |
if: failure() | |
run: git diff | |
- name: Docs Build | |
run: | | |
make docs-html |