Skip to content

chore: Add GitHub Actions workflows for code formatting, testing, and CodeQL analysis #1

chore: Add GitHub Actions workflows for code formatting, testing, and CodeQL analysis

chore: Add GitHub Actions workflows for code formatting, testing, and CodeQL analysis #1

name: Code formatting and typing
on:
pull_request:
branches:
- main
jobs:
CodeFormattingAndTyping:
name: Code formatting and typing
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: check format using pycodestyle (ignore error on line length>79)
id: formatChecks
run: flake8 ukbot
- name: mypy static type checker
run: mypy --ignore-missing-imports ukbot