Skip to content

changes in workflow

changes in workflow #5

Workflow file for this run

name: QR Code Generator CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install qrcode pillow
- name: Run QR code generator
run: |
# Simulate user input for QR code generation
echo "'Enter anything to generate QR :Hello World'" | python QR.py
- name: Verify QR code generation
run: |
# Check if QRcode.png was created
if [ ! -f QRcode.png ]; then
echo "QR code was not generated"
exit 1
fi
- name: Upload QR code artifact
uses: actions/upload-artifact@v3
with:
name: qr-code
path: QRcode.png
retention-days: 5