From 81f54a032263e7453d11d5c5efff441727655b02 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 27 May 2023 14:03:10 -0700 Subject: [PATCH] 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. --- .github/workflows/python-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index f6c214e7b..0613fe233 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -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'