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:
Paul Gauthier 2023-05-27 14:03:10 -07:00
parent 0ec5c69fc4
commit 81f54a0322

View file

@ -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'