rough CI/CD pipelines and build scripts

This commit is contained in:
2025-08-25 11:18:48 -05:00
committed by Jason Ross
parent 775a622509
commit 3d144d0aa7
8 changed files with 308 additions and 12 deletions
+73
View File
@@ -0,0 +1,73 @@
# .github/workflows/ci.yml
name: CI/CD Pipeline
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.13]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Run linting
run: |
poetry run flake8 src/
poetry run black --check src/
poetry run mypy src/
build:
needs: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Generate lock file
run: poetry lock
- name: Install dependencies
run: poetry install
- name: Build application
run: |
# Set environment variable for CI mode
export CI_MODE=true
poetry run python src/main.py
env:
CI_MODE: "true"
- name: Build complete
run: echo "Build process completed successfully"