1- name : tests/unitary/default_setup/**
1+ name : " [Py3.8][Py3.9][Py3.10] tests/unitary/default_setup/**"
22
33on :
4+ workflow_dispatch :
45 pull_request :
5- branches :
6- - main
7- - " release/**"
8- - develop
6+ branches : [ "main" ]
97 paths :
108 - " ads/**"
11- - " !ads/ads_version.json"
12- - setup.py
13- - " **requirements.txt"
14- - .github/workflows/run-unittests.yml
15- - .github/workflows/run-unittests-default_setup.yml
9+ - " !ads/opctl/operator/**"
10+ - " !ads/feature_store/**"
11+ - " pyproject.toml"
12+
1613
1714# Cancel in progress workflows on pull_requests.
1815# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -39,48 +36,29 @@ jobs:
3936 python-version : ["3.8", "3.9", "3.10"]
4037
4138 steps :
42- - uses : actions/checkout@v3
39+ - uses : actions/checkout@v4
4340
44- # Caching python libraries installed with pip
45- # https://github.com/actions/cache/blob/main/examples.md#python---pip
46- - uses : actions/cache@v3
47- with :
48- path : ~/.cache/pip
49- key : ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }}
50- restore-keys : |
51- ${{ runner.os }}-pip-
52- - uses : actions/setup-python@v4
41+ - uses : actions/setup-python@v5
5342 with :
5443 python-version : ${{ matrix.python-version }}
44+ cache : " pip"
45+ cache-dependency-path : |
46+ pyproject.toml
47+ "**requirements.txt"
5548
56- - name : " Test config setup"
57- shell : bash
58- env :
59- HOME_RUNNER_DIR : /home/runner
60- run : |
61- set -x # print commands that are executed
62- mkdir -p "$HOME_RUNNER_DIR"/.oci
63- openssl genrsa -out $HOME_RUNNER_DIR/.oci/oci_ads_user.pem 2048
64- cat <<EOT >> "$HOME_RUNNER_DIR/.oci/config"
65- [DEFAULT]
66- user=ocid1.user.oc1..xxx
67- fingerprint=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
68- tenancy=ocid1.tenancy.oc1..xxx
69- region=test_region
70- key_file=$HOME_RUNNER_DIR/.oci/oci_ads_user.pem
71- EOT
72- ls -lha "$HOME_RUNNER_DIR"/.oci
73- echo "Test config file:"
74- cat $HOME_RUNNER_DIR/.oci/config
49+ - uses : ./.github/workflows/set-dummy-conf
50+ name : " Test config setup"
7551
7652 - name : " Run default_setup tests folder ONLY with minimum ADS dependencies"
77- timeout-minutes : 15
53+ timeout-minutes : 30
7854 shell : bash
7955 env :
8056 NoDependency : True
8157 run : |
8258 set -x # print commands that are executed
8359 $CONDA/bin/conda init
8460 source /home/runner/.bashrc
61+ conda install python=${{ matrix.python-version }}
8562 pip install -r test-requirements.txt
63+ conda list
8664 python -m pytest -v -p no:warnings --durations=5 tests/unitary/default_setup
0 commit comments