diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8779d1a9..c4fa6fee6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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