mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00

# Context: USER: i need to install the "universal ctags" binary in ubuntu before i run tests ASSISTANT: To install the "universal ctags" binary in Ubuntu before running tests, you can add a new step in the `.github/workflows/python-tests.yml` file. ```yaml .github/workflows/python-tests.yml <<<<<<< ORIGINAL - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt ======= - name: Install universal ctags run: | sudo apt-get update sudo apt-get install -y universal-ctags - name: Install dependencies run: | python ^C KeyboardInterrupt USER: sorry, do that again ASSISTANT: Sure, here's the updated step to install "universal ctags" in the `.github/workflows/python-tests.yml` file. ```yaml .github/workflows/python-tests.yml <<<<<<< ORIGINAL - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt ======= - name: Install universal ctags run: | sudo apt-get update sudo apt-get install -y universal-ctags - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt >>>>>>> UPDATED ``` This change adds a new step to install "universal ctags" before installing the Python dependencies.
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
name: Python Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11"]
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install universal ctags
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y universal-ctags
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run tests excluding test_get_tags_map_with_identifiers
|
|
run: |
|
|
python -c "import unittest; loader = unittest.TestLoader(); suite = loader.discover('.'); suite_filtered = unittest.TestSuite([t for t in suite if 'test_get_tags_map_with_identifiers' not in str(t)]); unittest.TextTestRunner().run(suite_filtered)"
|