diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml deleted file mode 100644 index 11f8de5..0000000 --- a/.github/workflows/ci-cd.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: CI/CD Pipeline - -on: - push: - branches: - - main - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r deployment/api/requirements.txt - - - name: Run unit tests - run: | - pytest tests/ # adapte le chemin à ton dossier de tests - - build_and_push: - needs: test - runs-on: ubuntu-latest - if: success() - - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push Docker image - uses: docker/build-push-action@v4 - with: - context: ./deployment/api - file: ./deployment/api/Dockerfile - push: true - tags: yourdockerhubusername/sentiment_api:latest - -