rm default command #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will install Python dependencies, | |
| # statically check the code with ruff | |
| # run all tests in tests/ | |
| # check if test coverage is above the threshold | |
| name: CI for dev branch | |
| on: | |
| pull_request: | |
| branches: | |
| - "dev" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.13" | |
| - name: Install poetry | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| poetry --version | |
| - name: Install dependencies from poetry lock file | |
| run: poetry install | |
| - name: Check code quality with Ruff linter | |
| run: poetry run ruff check --output-format=github | |
| - name: Check code formatting with Ruff | |
| run: poetry run ruff format --diff | |
| # - name: Run tests with pytest that do not needs secrets and check test coverage | |
| # run: | | |
| # poetry run python -m pytest tests -m "not needs_secrets" --cov=retrievalpipeline --cov-report=term --cov-fail-under=75 | |
| - name: Log into registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.ACR_ENDPOINT }} | |
| username: ${{ secrets.ACR_USERNAME }} | |
| password: ${{ secrets.ACR_PASSWORD }} | |
| - name: Build & Push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| push: true | |
| tags: ${{ secrets.ACR_ENDPOINT }}/${{ vars.IMAGE_NAME }}:dev | |
| file: ./Dockerfile |