Skip to content

[Snyk] Security upgrade python from 3.9-slim to 3.13.0rc2-slim #12

[Snyk] Security upgrade python from 3.9-slim to 3.13.0rc2-slim

[Snyk] Security upgrade python from 3.9-slim to 3.13.0rc2-slim #12

Workflow file for this run

name: Build Python App 🏗️
on:
pull_request:
branches: ["develop"]
paths: [
"python-code/**",
".github/workflows/build-python.yml"
]
workflow_dispatch:
defaults:
run:
working-directory: python-code
jobs:
build:
name: 🏗️ Build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.11]
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v4
- name: 🏗 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: ✅ Build completed
run: echo "Build completed successfully!"
# test docker build and up the container then down
build-test-docker:
name: 🐋 Build Test Docker Container
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout code
uses: actions/checkout@v4
- name: 🏗 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🏗 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: 🐳 Build Docker image
run: |
docker build --no-cache -t ${{ secrets.DOCKER_USERNAME }}/attendance-model:latest .
- name: ✅ Echo success message
run: echo "Docker build successful"