feat:Support Aliyun OSS credential vending + per-user token-exchange #9
This file contains hidden or 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: MLflow-UC OSS Integration Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash --noprofile --norc -exo pipefail {0} | |
| env: | |
| MLFLOW_HOME: /home/runner/work/mlflow/mlflow | |
| UC_OSS_INTEGRATION: true | |
| jobs: | |
| uc-oss-integration-test: | |
| if: false # Disabled to prevent supply chain attacks; remove this line to restore | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10'] | |
| timeout-minutes: 30 | |
| permissions: {} | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install mlflow | |
| pip install pytest | |
| - name: Start Unity Catalog Server | |
| run: | | |
| ai/dev/start_unitycatalog.sh | |
| - name: Run tests for UnityCatalog | |
| run: | | |
| pytest tests/test_mlflow_integration.py | |
| - name: Stop Unity Catalog Server | |
| run: | | |
| ai/dev/teardown_server.sh |