Skip to content

tests: remove forced browser_version just to get tests running #355

tests: remove forced browser_version just to get tests running

tests: remove forced browser_version just to get tests running #355

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Static Analysis
on:
push:
branches: [ master, main ]
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches: [ master, main ]
paths-ignore:
- '**.md'
- 'docs/**'
jobs:
StaticAnalysis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
- name: Autoformat with ruff
run: |
ruff format QWeb
- name: Typecheck with mypy
run: |
mypy --show-error-codes QWeb
- name: Lint with ruff
run: |
ruff check QWeb
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 QWeb --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 QWeb --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pylint QWeb