diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 031ac821..ff1ac542 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,9 @@ name: Continuous Integration # TODO: add main here on: - workflow_dispatch: + push: + branches: + - "main" jobs: test-microservices: @@ -21,10 +23,8 @@ jobs: pip install --upgrade pip pip install poetry poetry env use 3.10 - poetry install --only=github --no-root - poetry run pip install -e . - poetry pytest - + poetry install --only=github + poetry run pytest build-base-image: runs-on: ubuntu-latest @@ -94,11 +94,6 @@ jobs: - name: Log in to GHCR run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r assets/pipeline/config/requirements.github.txt - - name: Install Docker Compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose