[WIP][Do Not Merge] Modernize ADS build workflows to uv and simplify root package imports #3418
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: "[Py3.9-3.12] - Default Tests" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - "ads/**" | |
| - "!ads/opctl/operator/**" | |
| - "!ads/feature_store/**" | |
| - "pyproject.toml" | |
| # Cancel in progress workflows on pull_requests. | |
| # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| # hack for https://github.com/actions/cache/issues/810#issuecomment-1222550359 | |
| env: | |
| SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5 | |
| jobs: | |
| test: | |
| name: python ${{ matrix.python-version }}, default_setup | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: ./.github/workflows/set-dummy-conf | |
| name: "Test config setup" | |
| - uses: ./.github/workflows/test-env-setup | |
| name: "Test env setup" | |
| timeout-minutes: 30 | |
| with: | |
| requirements-file: test-requirements.txt | |
| - name: "Run default_setup tests folder ONLY with minimum ADS dependencies" | |
| timeout-minutes: 30 | |
| shell: bash | |
| env: | |
| NoDependency: True | |
| run: | | |
| set -x # print commands that are executed | |
| python -m pytest -v -p no:warnings --durations=5 tests/unitary/default_setup |