Skip to content

Address linting and formatting issues #5

Address linting and formatting issues

Address linting and formatting issues #5

Workflow file for this run

name: CI
on:
push:
branches: ['*']
pull_request:
branches: [master]
jobs:
lint-format-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install --with dev
- name: Check Code Format (black)
run: poetry run black --check tfworker tests
- name: Check Imports Sorted (isort)
run: poetry run isort --check-only tfworker tests
- name: Run Lint (flake8)
run: poetry run flake8 --ignore E501,W503 tfworker tests
- name: Run Tests
run: poetry run pytest -p no:warnings --disable-socket