mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
aider: Excluded test_get_tags_map_with_identifiers from running in GitHub Actions.
# Context: USER: how can i exclude running test_get_tags_map_with_identifiers from tests/test_repomap.py when tests run in github actions? ASSISTANT: To exclude the `test_get_tags_map_with_identifiers` test from running in GitHub Actions, you can modify the `python-tests.yml` file to include a command-line option for the `unittest discover` command. You can use the `-k` option to specify a pattern that matches all test methods except `test_get_tags_map_with_identifiers`. Here's the change you need to make in the `.github/workflows/python-tests.yml` file: ```yaml .github/workflows/python-tests.yml <<<<<<< ORIGINAL - name: Run tests run: | python -m unittest discover ======= - name: Run tests excluding test_get_tags_map_with_identifiers run: | python -m unittest discover -k 'not test_get_tags_map_with_identifiers' >>>>>>> UPDATED ``` This change will exclude the `test_get_tags_map_with_identifiers` test method from running when the GitHub Actions workflow is executed.
This commit is contained in:
parent
0ec5c69fc4
commit
81f54a0322
1 changed files with 2 additions and 2 deletions
4
.github/workflows/python-tests.yml
vendored
4
.github/workflows/python-tests.yml
vendored
|
@ -29,6 +29,6 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
- name: Run tests excluding test_get_tags_map_with_identifiers
|
||||
run: |
|
||||
python -m unittest discover
|
||||
python -m unittest discover -k 'not test_get_tags_map_with_identifiers'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue