Skip to content

Commit 8d07492

Browse files
committed
CI fixes.
1 parent a82a7ee commit 8d07492

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/skills/generate-api-markdown/SKILL.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Generate an API markdown file and token file using ApiView. Use thi
77

88
## Prerequisites
99

10-
1. Activate your virtual environment with a Python version that is strictly less than the version limit specified in `eng/tools/azure-sdk-tools/azpysdk/apistub.py`.
10+
1. Activate your virtual environment.
1111
2. Install the required dependencies:
1212
```bash
1313
cd <repo_root>
@@ -19,5 +19,6 @@ description: Generate an API markdown file and token file using ApiView. Use thi
1919
1. Navigate to the desired package directory
2020
2. Run the command:
2121
```bash
22-
azpysdk apistub --md --extract-metadata .
22+
azpysdk apistub --md --extract-metadata --install-deps --dest-dir . .
23+
```
2324
3. The command outputs the location of the generated markdown file. Provide this file to the user for review.

.github/workflows/api-consistency.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
shell: bash
4343
run: |
4444
python -m pip install --upgrade pip
45+
python -m pip install -r eng/apiview_reqs.txt --index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
4546
python -m pip install ./eng/tools/azure-sdk-tools
4647
4748
- name: Setup Node.js

eng/tools/azure-sdk-tools/tests/test_apistub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _make_args(self, dest_dir=None, generate_md=False):
9191
@patch("azpysdk.apistub.create_package_and_install")
9292
@patch("azpysdk.apistub.install_into_venv")
9393
@patch("azpysdk.apistub.set_envvar_defaults")
94-
def test_dest_dir_creates_package_subfolder(
94+
def test_dest_dir_uses_destination_directory(
9595
self, _env, _install, _create, _get_whl, _get_mapping, tmp_path, monkeypatch
9696
):
9797
"""When --dest-dir is given, output should go directly to <dest_dir>/."""

0 commit comments

Comments
 (0)