Skip to content

Breadbox releases api phase2 - release_versions CRUD, CRUD tests, and… #366

Breadbox releases api phase2 - release_versions CRUD, CRUD tests, and…

Breadbox releases api phase2 - release_versions CRUD, CRUD tests, and… #366

---
name: Build breadbox client
on:
push:
paths:
- "breadbox/**"
- "breadbox-client/**"
- ".github/workflows/build_breadbox_client.yaml"
env:
ARTIFACT_REGISTRY_REPO: us-central1-docker.pkg.dev/depmap-consortium/depmap-docker-images/depmap-breadbox
DOCKER_TAG: ga2-build-${{ github.run_number }}
jobs:
build-breadbox-client:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: "Check out"
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0
- name: Prepare breadbox client
uses: ./.github/actions/prepare-breadbox-client # checks out and generates breadbox client code
- name: "Authenticate to Google Cloud"
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2.1.13
with:
credentials_json: "${{ secrets.DEPMAP_ARTIFACTS_SVC_ACCT }}"
- name: "Set up authentication for publishing breadbox client"
working-directory: "./breadbox-client"
run: |
poetry self add keyrings.google-artifactregistry-auth
poetry config repositories.public-python https://us-central1-python.pkg.dev/cds-artifacts/public-python/
shell: bash
- name: "Install breadbox and dependencies"
working-directory: ./breadbox
run: "poetry install"
- name: "Install breadbox_client and dependencies"
working-directory: ./breadbox-client
run: "poetry install"
- name: Running pyright
working-directory: ./breadbox-client
run: "poetry run pyright breadbox_facade"
- name: Running pytest
working-directory: ./breadbox-client
run: "poetry run pytest"
- name: Bump version and publish
working-directory: ./breadbox-client
run: "python bump_version_and_publish.py --dry-run-if-not-branch master"