Skip to content

feat: CI pipeline docker test #2

feat: CI pipeline docker test

feat: CI pipeline docker test #2

Workflow file for this run

name: CI
on:
push:
branches: [ "master", "main" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run app import check
run: |
python -c "import main"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: |
docker build -t fastapi-app .