Skip to content

ci: Build the package and the docker container #1

ci: Build the package and the docker container

ci: Build the package and the docker container #1

Workflow file for this run

name: CI/CD Pipeline
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest
deploy:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Build Docker image
run: |
docker build .