Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Enhance CI workflow by adding linting job and ensuring dependencies a… #6

Enhance CI workflow by adding linting job and ensuring dependencies a…

Enhance CI workflow by adding linting job and ensuring dependencies a… #6

Workflow file for this run

name: Python CI
on:
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry' # Cache Poetry dependencies
- name: Install dependencies
run: poetry install --no-root --sync
- name: Run linters
run: |
poetry run make lint
test:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry' # Cache Poetry dependencies
- name: Install dependencies
run: poetry install --sync
- name: Run tests and check coverage
run: |
poetry run pytest ./tests --cov=python_chat --cov=./tests --cov-report term-missing --cov-fail-under=85