Skip to content

feat: use cache for node js github actions #2436

feat: use cache for node js github actions

feat: use cache for node js github actions #2436

name: Python SDK check
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
paths:
- 'packages/core/**'
- 'packages/sdk/python/human-protocol-sdk/**'
jobs:
python-test:
name: Python Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install core package dependencies
run: yarn --ignore-scripts
- name: Build core package
run: yarn build
working-directory: ./packages/core
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pipenv
run: pip install pipenv
- name: Python test
working-directory: ./packages/sdk/python/human-protocol-sdk
run: |
pipenv install --dev
make run-test