Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests and Linting

on:
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.14.2"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[dev]"
- name: Run unit tests with coverage
run: |
pytest -m "not integration and not slow" --cov=main --cov-report=term-missing --cov-fail-under=80
- name: Run all tests
run: |
pytest --cov=main --cov-report=xml --cov-report=html
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
htmlcov/
coverage.xml

integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt update && sudo apt install -y docker-compose
- name: Run integration test with docker-compose
run: docker-compose up --build --abort-on-container-exit --exit-code-from github-etl
- name: Cleanup
if: always()
run: docker-compose down -v
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the latest stable Python image
FROM python:3.11-slim
FROM python:3.14.2-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
Expand Down Expand Up @@ -34,4 +34,4 @@ RUN chown -R app:app /app
USER app

# Set the default command
CMD ["python", "main.py"]
CMD ["python", "main.py"]
2 changes: 1 addition & 1 deletion Dockerfile.mock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dockerfile for mock GitHub API service
FROM python:3.11-slim
FROM python:3.14.2-slim

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ docker run --rm \

### Container Specifications

- **Base Image**: `python:3.11-slim` (latest stable Python)
- **Base Image**: `python:3.14.2-slim` (latest stable Python)
- **User**: `app` (uid: 1000, gid: 1000)
- **Working Directory**: `/app`
- **Ownership**: All files in `/app` are owned by the `app` user
Expand Down
Loading