Skip to content

Commit 73394ed

Browse files
committed
fix workflow
Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent f12bdb5 commit 73394ed

3 files changed

Lines changed: 93 additions & 0 deletions

File tree

.github/workflows/java_master_only.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,52 @@ jobs:
6969
java-version: '11'
7070
java-package: jdk
7171
architecture: x64
72+
- name: Setup Python (to call feast apply)
73+
uses: actions/setup-python@v2
74+
id: setup-python
75+
with:
76+
python-version: 3.8
77+
architecture: x64
78+
- name: Setup Go
79+
id: setup-go
80+
uses: actions/setup-go@v2
81+
with:
82+
go-version: 1.18.0
83+
- name: Upgrade pip version
84+
run: |
85+
pip install --upgrade "pip>=21.3.1,<22.1"
86+
- name: Get pip cache dir
87+
id: pip-cache
88+
run: |
89+
echo "::set-output name=dir::$(pip cache dir)"
90+
- name: pip cache
91+
uses: actions/cache@v2
92+
with:
93+
path: |
94+
${{ steps.pip-cache.outputs.dir }}
95+
/opt/hostedtoolcache/Python
96+
/Users/runner/hostedtoolcache/Python
97+
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }}
98+
restore-keys: |
99+
${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-
100+
- name: Install pip-tools
101+
run: pip install pip-tools
102+
- name: Install apache-arrow on ubuntu
103+
run: |
104+
sudo apt update
105+
sudo apt install -y -V ca-certificates lsb-release wget
106+
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
107+
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
108+
sudo apt update
109+
sudo apt install -y -V libarrow-dev
110+
- name: Install Python dependencies
111+
run: make install-python-ci-dependencies
112+
- uses: actions/cache@v2
113+
with:
114+
path: ~/.m2/repository
115+
key: ${{ runner.os }}-it-maven-${{ hashFiles('**/pom.xml') }}
116+
restore-keys: |
117+
${{ runner.os }}-it-maven-
72118
- uses: actions/cache@v2
73119
with:
74120
path: ~/.m2/repository

.github/workflows/java_pr.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,52 @@ jobs:
4040
java-version: '11'
4141
java-package: jdk
4242
architecture: x64
43+
- name: Setup Python (to call feast apply)
44+
uses: actions/setup-python@v2
45+
id: setup-python
46+
with:
47+
python-version: 3.8
48+
architecture: x64
49+
- name: Setup Go
50+
id: setup-go
51+
uses: actions/setup-go@v2
52+
with:
53+
go-version: 1.18.0
54+
- name: Upgrade pip version
55+
run: |
56+
pip install --upgrade "pip>=21.3.1,<22.1"
57+
- name: Get pip cache dir
58+
id: pip-cache
59+
run: |
60+
echo "::set-output name=dir::$(pip cache dir)"
61+
- name: pip cache
62+
uses: actions/cache@v2
63+
with:
64+
path: |
65+
${{ steps.pip-cache.outputs.dir }}
66+
/opt/hostedtoolcache/Python
67+
/Users/runner/hostedtoolcache/Python
68+
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }}
69+
restore-keys: |
70+
${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-
71+
- name: Install pip-tools
72+
run: pip install pip-tools
73+
- name: Install apache-arrow on ubuntu
74+
run: |
75+
sudo apt update
76+
sudo apt install -y -V ca-certificates lsb-release wget
77+
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
78+
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
79+
sudo apt update
80+
sudo apt install -y -V libarrow-dev
81+
- name: Install Python dependencies
82+
run: make install-python-ci-dependencies
83+
- uses: actions/cache@v2
84+
with:
85+
path: ~/.m2/repository
86+
key: ${{ runner.os }}-it-maven-${{ hashFiles('**/pom.xml') }}
87+
restore-keys: |
88+
${{ runner.os }}-it-maven-
4389
- uses: actions/cache@v2
4490
with:
4591
path: ~/.m2/repository

java/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ mvn spotless:apply
5959
### Project Makefile
6060
The Project Makefile provides useful shorthands for common development tasks:
6161

62+
> Note: These commands rely on a local version of `feast` (Python) to be installed
6263
6364
Run all Unit tests:
6465
```

0 commit comments

Comments
 (0)