fix: support INT32 type for entity keys #1243
This file contains 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: linter | |
on: [push, pull_request] | |
jobs: | |
lint-python: | |
runs-on: [ubuntu-latest] | |
env: | |
PYTHON: 3.8 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
architecture: x64 | |
- name: Setup Go | |
id: setup-go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.7 | |
- name: Upgrade pip version | |
run: | | |
pip install --upgrade pip | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: pip cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
${{ steps.pip-cache.outputs.dir }} | |
/opt/hostedtoolcache/Python | |
/Users/runner/hostedtoolcache/Python | |
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }} | |
restore-keys: | | |
${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip- | |
- name: Install pip-tools | |
run: pip install pip-tools | |
- name: Install apache-arrow on ubuntu | |
run: | | |
sudo apt update | |
sudo apt install -y -V ca-certificates lsb-release wget | |
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt update | |
sudo apt install -y -V "libarrow-dev=11.0.0-1" | |
- name: Install dependencies | |
run: | | |
make compile-protos-go | |
make install-python-ci-dependencies | |
- name: Lint python | |
run: make lint-python | |
lint-go: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Go | |
id: setup-go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.7 | |
- name: Setup Python | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Upgrade pip version | |
run: | | |
pip install --upgrade pip | |
- name: Install apache-arrow on ubuntu | |
run: | | |
sudo apt update | |
sudo apt install -y -V ca-certificates lsb-release wget | |
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt update | |
sudo apt install -y -V "libarrow-dev=11.0.0-1" | |
- name: Lint go | |
run: make lint-go |