Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerkclark committed Sep 28, 2023
1 parent 771ba3f commit e3b24d6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2.1
orbs:
gcp-gcr: circleci/[email protected]
gh: circleci/[email protected]
jobs:
build:
machine:
image: ubuntu-2004:202111-02
environment:
FSSPEC_GS_REQUESTER_PAYS: vcm-ml
GOOGLE_APPLICATION_CREDENTIALS: /tmp/key.json
steps:
- checkout
- run: make update_submodules
- run:
name: "gcloud auth"
command: |
echo $ENCODED_GOOGLE_CREDENTIALS | base64 -d > $GOOGLE_APPLICATION_CREDENTIALS
echo "export GCLOUD_SERVICE_KEY=\$(echo \$ENCODED_GOOGLE_CREDENTIALS | base64 --decode)" >> $BASH_ENV
- gcp-gcr/gcr-auth
- run: make build
- run: make test

workflows:
version: 2
build:
jobs:
- build
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ enter:

lock_pip:
pip-compile requirements.in

update_submodules:
git submodule update --init --recursive

0 comments on commit e3b24d6

Please sign in to comment.