Skip to content

fix libary version

fix libary version #14

Workflow file for this run

name: Industry-Grade CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install CI Dependencies
run: |
python -m pip install --upgrade pip
pip install black ruff pytest pytest-cov
pip install -r requirements.txt
- name: Code Quality (Ruff & Black)
run: |
# Check linting and common errors with Ruff
ruff check app/ tests/
# Ensure code is formatted correctly with Black
black --check app/ tests/
- name: Run Unit Tests (with coverage)
run: |
export PYTHONPATH=$PYTHONPATH:.
python -m pytest tests/ --cov=app --cov-report=xml
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker Image
run: docker build -t informa-truth .
- name: Test Docker Container
run: |
docker run --rm informa-truth python -m pytest tests/