Merge branch 'master' into ce-use-compound-datasets #72
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
| --- | |
| name: Build breadbox client | |
| on: | |
| push: | |
| paths: | |
| - "breadbox/**" | |
| - "breadbox-client/**" | |
| - ".github/workflows/build_breadbox_client.yaml" | |
| env: | |
| DOCKER_REPO: us.gcr.io/broad-achilles/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@v3 | |
| 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@v2 | |
| 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" |