Skip to content

Commit a75703c

Browse files
liudmylaruspavlusievajdesantomrDzurbqiuosier
authored
Release 2.8.4: Develop -> Main (#184)
Co-authored-by: Oleksandra Pavlusieva <[email protected]> Co-authored-by: John DeSanto <[email protected]> Co-authored-by: Dmitrii Cherkasov <[email protected]> Co-authored-by: Qiu Qin <[email protected]> Co-authored-by: Ziqun Ye <[email protected]> Co-authored-by: Lu Peng <[email protected]> Co-authored-by: Lu Peng <[email protected]> Co-authored-by: MING KANG <[email protected]> Co-authored-by: Daren Race <[email protected]> Co-authored-by: Mayoor Rao <[email protected]> Co-authored-by: Mayoor Rao <[email protected]> Co-authored-by: Allen <[email protected]>
1 parent 129ede9 commit a75703c

File tree

420 files changed

+49013
-4710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

420 files changed

+49013
-4710
lines changed

.coveragerc

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[run]
2+
omit =
3+
**/__init__.py
4+
**/__main__.py
5+
**/_imports.py
6+
**/cli.py
7+
**/constants.py
8+
**/extension.py
9+
**/score.py
10+
*/.*
11+
/private/*
12+
/tmp/*
13+
ads/automl/*
14+
ads/common/analyzer.py
15+
ads/common/artifact/*
16+
ads/common/function/*
17+
ads/dataflow/*
18+
ads/dataset/dask_series.py
19+
ads/dataset/factory.py
20+
ads/environment/*
21+
ads/experiments/*
22+
ads/explanations/*
23+
ads/templates/*
24+
ads/type_discovery/*
25+
docs/*
26+
tests/*
27+
28+
[report]
29+
exclude_lines =
30+
pragma: no cover
31+
def __repr__
32+
if __name__ == .__main__.:
33+
@(abc\.)?abstractmethod
34+
raise AssertionError
35+
raise NotImplementedError
36+
omit =
37+
**/__init__.py
38+
**/__main__.py
39+
**/_imports.py
40+
**/cli.py
41+
**/constants.py
42+
**/extension.py
43+
**/score.py
44+
*/.*
45+
/private/*
46+
/tmp/*
47+
ads/automl/*
48+
ads/common/analyzer.py
49+
ads/common/artifact/*
50+
ads/common/function/*
51+
ads/dataflow/*
52+
ads/dataset/dask_series.py
53+
ads/dataset/factory.py
54+
ads/environment/*
55+
ads/experiments/*
56+
ads/explanations/*
57+
ads/templates/*
58+
ads/type_discovery/*
59+
show_missing = true
60+
skip_empty = true
61+
precision = 2
62+
63+
[html]
64+
directory = htmlcov

.github/workflows/publish-to-pypi.yml

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: "[DO NOT TRIGGER] Publish to PyPI"
22

3-
on:
4-
# To run this workflow manually from the Actions tab
5-
workflow_dispatch:
3+
# To run this workflow manually from the Actions tab
4+
on: workflow_dispatch
65

76
jobs:
87
build-n-publish:
@@ -17,14 +16,27 @@ jobs:
1716
python-version: "3.x"
1817
- name: Build distribution 📦
1918
run: |
19+
pip install wheel
2020
make dist
2121
- name: Validate
2222
run: |
2323
pip install dist/*.whl
2424
python -c "import ads;"
25-
- name: Publish distribution 📦 to Test PyPI
25+
## To run publish to test PyPI secret with token needs to be added,
26+
## this one GH_ADS_TESTPYPI_TOKEN - removed after initial test.
27+
## Project name also needed to be updated in setup.py - setup(name="test_oracle_ads", ...),
28+
## regular name is occupied by former developer and can't be used for testing
29+
# - name: Publish distribution 📦 to Test PyPI
30+
# env:
31+
# TWINE_USERNAME: __token__
32+
# TWINE_PASSWORD: ${{ secrets.GH_ADS_TESTPYPI_TOKEN }}
33+
# run: |
34+
# pip install twine
35+
# twine upload -r testpypi dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
36+
- name: Publish distribution 📦 to PyPI
2637
env:
2738
TWINE_USERNAME: __token__
28-
TWINE_PASSWORD: ${{ secrets.GH_ADS_TESTPYPI_TOKEN }}
39+
TWINE_PASSWORD: ${{ secrets.GH_ADS_PYPI_TOKEN }}
2940
run: |
30-
twine upload -r testpypi dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
41+
pip install twine
42+
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD

.github/workflows/publish-to-readthedocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
- name: When tag 🏷️ pushed - Trigger Readthedocs build
3434
if: github.event_name == 'push' && startsWith(github.ref_name, 'v')
3535
run: |
36+
# add 10 minutes wait time for readthedocs see freshly created tag
37+
sleep 10m
3638
curl \
3739
-X POST \
3840
-H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/${{ github.ref_name }}/builds/
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
name: Unit Tests unitary/default_setup/*
1+
name: tests/unitary/default_setup/**
22

33
on:
4-
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- main
7+
- "release/**"
8+
- develop
9+
paths:
10+
- "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
516

617
# Cancel in progress workflows on pull_requests.
718
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -12,9 +23,13 @@ concurrency:
1223
permissions:
1324
contents: read
1425

26+
# hack for https://github.com/actions/cache/issues/810#issuecomment-1222550359
27+
env:
28+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
29+
1530
jobs:
1631
test:
17-
name: python ${{ matrix.python-version }}, tests/unitary/default_setup
32+
name: python ${{ matrix.python-version }}, default_setup
1833
runs-on: ubuntu-latest
1934
timeout-minutes: 20
2035

@@ -38,28 +53,34 @@ jobs:
3853
with:
3954
python-version: ${{ matrix.python-version }}
4055

41-
# - name: "Test config setup"
42-
# shell: bash
43-
# env:
44-
# ADS_OCI_CONFIG_REALLIKE: ${{ secrets.ADS_OCI_CONFIG_REALLIKE }}
45-
# ADS_OCI_PRIVATE_KEY_REALLIKE: ${{ secrets.ADS_OCI_PRIVATE_KEY_REALLIKE }}
46-
# run: |
47-
# set -x # print commands that are executed
48-
# mkdir -p /home/runner/.oci
49-
# ls -lha
50-
# echo "$ADS_OCI_CONFIG_REALLIKE" > "/home/runner/.oci/config"
51-
# echo "$ADS_OCI_PRIVATE_KEY_REALLIKE" > "/home/runner/.oci/oci_ads_user.pem"
52-
# echo "key_file=/home/runner/.oci/oci_ads_user.pem" >> "/home/runner/.oci/config"
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
5375
54-
# - name: "Run default_setup tests folder ONLY with minimum ADS dependencies"
55-
# timeout-minutes: 15
56-
# shell: bash
57-
# env:
58-
# NB_SESSION_COMPARTMENT_OCID: ocid1.compartment.oc1.<unique_ocid>
59-
# NoDependency: True
60-
# run: |
61-
# set -x # print commands that are executed
62-
# $CONDA/bin/conda init
63-
# source /home/runner/.bashrc
64-
# pip install -r test-requirements.txt
65-
# python -m pytest -v -p no:warnings --durations=5 tests/unitary/default_setup
76+
- name: "Run default_setup tests folder ONLY with minimum ADS dependencies"
77+
timeout-minutes: 15
78+
shell: bash
79+
env:
80+
NoDependency: True
81+
run: |
82+
set -x # print commands that are executed
83+
$CONDA/bin/conda init
84+
source /home/runner/.bashrc
85+
pip install -r test-requirements.txt
86+
python -m pytest -v -p no:warnings --durations=5 tests/unitary/default_setup

0 commit comments

Comments
 (0)