Skip to content

Update ansible requirement from ~=10.1.0 to ~=10.5.0 #147

Update ansible requirement from ~=10.1.0 to ~=10.5.0

Update ansible requirement from ~=10.1.0 to ~=10.5.0 #147

# 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: Linting tests
on:
push:
pull_request:
branches: [main]
workflow_call:
jobs:
build:
name: Linting Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
flit install --deps develop --symlink
env:
FLIT_ROOT_INSTALL: 1
- name: Check formatting with ruff
run: |
ruff format --respect-gitignore --preview --check .
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check --respect-gitignore --preview .
- name: Check with mypy
run: |
mypy .