|
| 1 | +name: pr-registration-integration-tests |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request_target: |
| 5 | + types: |
| 6 | + - opened |
| 7 | + - synchronize |
| 8 | + - labeled |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +permissions: |
| 15 | + actions: write |
| 16 | + pull-requests: read |
| 17 | + |
| 18 | +jobs: |
| 19 | + integration-test-registration-local: |
| 20 | + if: |
| 21 | + ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
| 22 | + (github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) && |
| 23 | + github.repository == 'feast-dev/feast' |
| 24 | + runs-on: ubuntu-latest |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + ref: refs/pull/${{ github.event.pull_request.number }}/merge |
| 29 | + submodules: recursive |
| 30 | + persist-credentials: false |
| 31 | + - name: Setup pixi |
| 32 | + uses: prefix-dev/setup-pixi@v0.8.1 |
| 33 | + with: |
| 34 | + pixi-version: v0.63.1 |
| 35 | + environments: registration-tests |
| 36 | + cache: true |
| 37 | + - name: Run registration integration tests (local) |
| 38 | + run: make test-python-registration |
| 39 | + |
| 40 | + integration-test-registration-ci: |
| 41 | + if: |
| 42 | + ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
| 43 | + (github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) && |
| 44 | + github.repository == 'feast-dev/feast' |
| 45 | + runs-on: ubuntu-latest |
| 46 | + services: |
| 47 | + redis: |
| 48 | + image: redis |
| 49 | + ports: |
| 50 | + - 6379:6379 |
| 51 | + options: >- |
| 52 | + --health-cmd "redis-cli ping" |
| 53 | + --health-interval 10s |
| 54 | + --health-timeout 5s |
| 55 | + --health-retries 5 |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v4 |
| 58 | + with: |
| 59 | + ref: refs/pull/${{ github.event.pull_request.number }}/merge |
| 60 | + submodules: recursive |
| 61 | + persist-credentials: false |
| 62 | + - name: Authenticate to Google Cloud |
| 63 | + uses: 'google-github-actions/auth@v1' |
| 64 | + with: |
| 65 | + credentials_json: '${{ secrets.GCP_SA_KEY }}' |
| 66 | + - name: Set up gcloud SDK |
| 67 | + uses: google-github-actions/setup-gcloud@v1 |
| 68 | + with: |
| 69 | + project_id: ${{ secrets.GCP_PROJECT_ID }} |
| 70 | + - name: Set up AWS SDK |
| 71 | + uses: aws-actions/configure-aws-credentials@v1 |
| 72 | + with: |
| 73 | + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 74 | + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 75 | + aws-region: us-west-2 |
| 76 | + - name: Cache Hadoop tarball |
| 77 | + uses: actions/cache@v4 |
| 78 | + with: |
| 79 | + path: ~/hadoop-3.4.2.tar.gz |
| 80 | + key: hadoop-3.4.2 |
| 81 | + - name: Install Hadoop dependencies |
| 82 | + run: make install-hadoop-dependencies-ci |
| 83 | + - name: Setup pixi |
| 84 | + uses: prefix-dev/setup-pixi@v0.8.1 |
| 85 | + with: |
| 86 | + pixi-version: v0.63.1 |
| 87 | + environments: registration-tests |
| 88 | + cache: true |
| 89 | + - name: Run registration integration tests (CI) |
| 90 | + run: make test-python-registration-ci |
0 commit comments