Address linting and formatting issues #5
This file contains hidden or 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
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 |