Skip to content

Commit

Permalink
install poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-m committed May 30, 2024
1 parent 5c8ee88 commit b7c91d7
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,26 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Set up Python
uses: actions/setup-python@v4
- name: Set up Poetry
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
uses: snok/install-poetry@v1
with:
python-version: "3.11"
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'

- name: Cache Go modules
uses: actions/cache@v3
Expand All @@ -105,7 +121,6 @@ jobs:
- name: Install Protobuf Compilers
run: |
python3 -m pip install -U "betterproto[compiler]" betterproto-beta9
sudo apt install protobuf-compiler
sudo apt install golang-goprotobuf-dev
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
Expand Down

0 comments on commit b7c91d7

Please sign in to comment.