Skip to content

Add CI workflow

Add CI workflow #24

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
- devops-task
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies (vote app)
run: |
cd vote
pip install -r requirements.txt
- name: Run simple test
run: |
cd vote
python3 -m py_compile app.py