Skip to content

Commit 2770922

Browse files
authored
Merge pull request #1534 from microsoft/staging
Merge fixes before release
2 parents 199dd80 + 09e31a5 commit 2770922

14 files changed

Lines changed: 1013 additions & 461 deletions

File tree

.github/workflows/actions/run-tests/action.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,27 @@
77
# - uses: actions/checkout@v2
88
# - uses: ./.github/workflows/actions/run-tests
99
# with:
10+
# tox-env: 'spark'
1011
# test-kind: 'unit'
1112
# test-marker: 'spark and notebooks'
1213

1314
name: 'Run Python tests'
1415
description: 'Specify parameters to configure test subsets to run and collect test report for.'
1516
inputs:
17+
tox-env:
18+
description: "Name of the tox env. EX) cpu|gpu|spark
19+
See tox.ini at root level for more info"
20+
required: true
21+
# Options are "cpu|gpu|spark|all" and any default tox env.
22+
# For more info on default tox env, see https://tox.readthedocs.io/en/latest/config.html#tox-environments
23+
default: 'all'
1624
test-kind:
17-
description:
18-
"The kinds of tests to run. EX) unit|integration|smoke
25+
description: "The kinds of tests to run. EX) unit|integration|smoke
1926
This maps to those in the 'tests/<unit|integration|smoke>' folder"
2027
required: true
2128
default: 'unit'
2229
test-marker:
23-
description:
24-
"Finer filter for selecting the tests to run with pytest markers.
30+
description: "Finer filter for selecting the tests to run with pytest markers.
2531
See https://docs.pytest.org/en/6.2.x/example/markers.html"
2632
default: 'not gpu and not notebooks and not spark'
2733
outputs:
@@ -44,12 +50,12 @@ runs:
4450
# '-e py' will use the default 'python' executable found in system path
4551
# for why using tox, see: https://tox.readthedocs.io/en/latest/index.html
4652
# tox will do:
47-
# 1. build and install source distribution (sdist)
48-
# 2. run static analysis on the code (not implemented yet)
49-
# 3. run all of the specified test environment (i.e. run tests in different py-versions, etc)
53+
# 1. create a virtual env
54+
# 2. build and install source distribution (sdist)
55+
# 3. run the specified tests
5056
# 4. show test reports
5157
run: |
52-
tox -e py -- tests/${{ inputs.test-kind }} -m '${{ inputs.test-marker }}'
58+
tox -ve ${{ inputs.tox-env }} -- tests/${{ inputs.test-kind }} -m '${{ inputs.test-marker }}'
5359
5460
- name: Prepare Code Coverage Report
5561
id: rename-cov-report

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
115115
uses: ./.github/workflows/actions/run-tests
116116
with:
117+
tox-env: 'cpu' # run the cpu tests with the 'recommenders[dev,examples]' dependencies
117118
test-kind: ${{ matrix.test-kind }}
118119
test-marker: ${{ matrix.test-marker }}
119120
# Currently GitHub workflow cannot call an action from another action
@@ -167,6 +168,7 @@ jobs:
167168
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
168169
uses: ./.github/workflows/actions/run-tests
169170
with:
171+
tox-env: 'spark' # run the gpu tests with the 'recommenders[spark,examples,dev]' dependencies
170172
test-kind: ${{ matrix.test-kind }}
171173
test-marker: ${{ matrix.test-marker }}
172174

@@ -202,6 +204,7 @@ jobs:
202204
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
203205
uses: ./.github/workflows/actions/run-tests
204206
with:
207+
tox-env: 'gpu' # run the gpu tests with the 'recommenders[gpu,examples,dev]' dependencies
205208
test-kind: ${{ matrix.test-kind }}
206209
test-marker: ${{ matrix.test-marker }}
207210

.github/workflows/pr-gate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
9494
uses: ./.github/workflows/actions/run-tests
9595
with:
96+
tox-env: 'cpu' # run the cpu tests with the 'recommenders[dev,examples]' dependencies
9697
test-kind: ${{ matrix.test-kind }}
9798
test-marker: ${{ matrix.test-marker }}
9899
# Currently GitHub workflow cannot call an action from another action
@@ -138,6 +139,7 @@ jobs:
138139
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
139140
uses: ./.github/workflows/actions/run-tests
140141
with:
142+
tox-env: 'spark' # run the spark tests with the 'recommenders[spark,examples,dev]' dependencies
141143
test-kind: ${{ matrix.test-kind }}
142144
test-marker: ${{ matrix.test-marker }}
143145

@@ -173,6 +175,7 @@ jobs:
173175
- name: Run ${{ matrix.test-kind }} tests ('${{ matrix.test-marker }}')
174176
uses: ./.github/workflows/actions/run-tests
175177
with:
178+
tox-env: 'gpu' # run the gpu tests with the 'recommenders[gpu,examples,dev]' dependencies
176179
test-kind: ${{ matrix.test-kind }}
177180
test-marker: ${{ matrix.test-marker }}
178181

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ celerybeat-schedule
8787
*.sage.py
8888

8989
# Environments
90-
.env
91-
.venv
90+
.env*
91+
.venv*
9292
env/
9393
venv/
9494
ENV/
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
version: 2
22

3-
# Build from the docs/ directory with Sphinx
4-
sphinx:
5-
configuration: docs/source/conf.py
3+
# Add necessary apt-get packages
4+
build:
5+
apt_packages:
6+
- cmake
67

78
# Explicitly set the version of Python and its requirements
89
python:
9-
version: 3.7
10+
version: "3.7"
1011
install:
11-
- requirements: docs/requirements.txt
12+
- method: pip
13+
path: .
14+
extra_requirements:
15+
- all
16+
17+
# Build from the docs/ directory with Sphinx
18+
sphinx:
19+
configuration: docs/source/conf.py

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# What's New
22

3-
## Update September 9, 2021
3+
## Update September 27, 2021
44

55
We have a new release [Recommenders 0.7.0](https://github.com/microsoft/recommenders/releases/tag/0.7.0)!
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Documentation Status](https://readthedocs.org/projects/microsoft-recommenders/badge/?version=latest)](https://microsoft-recommenders.readthedocs.io/en/latest/?badge=latest)
44

55
## What's New
6-
### (September 9, 2021)
6+
### (September 27, 2021)
77

88
We have a new release [Recommenders 0.7.0](https://github.com/microsoft/recommenders/releases/tag/0.7.0)!
99
We have changed the names of the folders which contain the source code, so that they are more informative. This implies that you will need to change any import statements that reference the recommenders package. Specifically, the folder `reco_utils` has been renamed to `recommenders` and its subfolders have been renamed according to [issue 1390](https://github.com/microsoft/recommenders/issues/1390).

docs/requirements.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)