|
69 | 69 | java-version: '11' |
70 | 70 | java-package: jdk |
71 | 71 | 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- |
72 | 118 | - uses: actions/cache@v2 |
73 | 119 | with: |
74 | 120 | path: ~/.m2/repository |
|
0 commit comments