Cherry pick of #2350 #2355 #2357 #2344 #2358 #2360 into release-0.17 branch #1738
This file contains 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: Python Test | |
on: | |
pull_request: | |
paths-ignore: | |
- "pkg/ui/v1beta1/frontend/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Run Python test | |
run: make pytest | |
# The skopt service doesn't work appropriately with Python 3.11. | |
# So, we need to run the test with Python 3.9. | |
# TODO (tenzen-y): Once we stop to support skopt, we can remove this test. | |
# REF: https://github.com/kubeflow/katib/issues/2280 | |
test-skopt: | |
name: Test Skopt | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Run Python test | |
run: make pytest-skopt |