Commit graph

32 commits

Author SHA1 Message Date
Paul Gauthier
0b781174bd ci: remove redundant AIDER_ANALYTICS_LOG environment variable 2024-11-30 11:37:33 -08:00
Paul Gauthier (aider)
14902f5b9a ci: add analytics env vars to GitHub Actions workflows 2024-11-30 11:25:39 -08:00
Paul Gauthier (aider)
971f317d3d build: Add HISTORY.md to ignore list in GitHub Actions workflows 2024-08-27 07:14:01 -07:00
Paul Gauthier
896e79bcd1 use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
Paul Gauthier (aider)
7ece31c08a Moved the tests directory from aider/tests/ to tests/ 2024-07-15 08:40:10 +01:00
Paul Gauthier
962e899f57 cleanup 2024-07-12 09:19:47 +01:00
Paul Gauthier
b89b2c4a1d install pytest too 2024-07-12 07:37:22 +01:00
Paul Gauthier
37ebe83893 run tests without [hf-embed] first 2024-07-12 07:31:21 +01:00
Paul Gauthier (aider)
48b3076e65 Configured Ubuntu and Windows test workflows to use pytest instead of unittest. 2024-07-12 07:30:21 +01:00
Paul Gauthier
ce2673e6eb Configured GitHub Actions workflows to use pytest instead of unittest for running tests on Ubuntu and Windows. 2024-07-12 07:30:20 +01:00
Paul Gauthier
b8c4d1dcb9 Removed the hf-embed extra from the pip install command in the Ubuntu and Windows GitHub Actions workflows. 2024-07-12 07:29:59 +01:00
Paul Gauthier
752e4999cc cpu only for GH actions tests 2024-07-10 17:45:18 +01:00
Paul Gauthier
9e3eb4fce5 move llama core into hf-embed 2024-07-10 17:44:26 +01:00
Paul Gauthier
8e20d762f5 don't run jobs if just website is modified 2024-07-06 15:21:34 -03:00
Taha YASSINE
acffd54297 Remove universal ctags install from workflows 2024-07-01 22:19:13 +01:00
Paul Gauthier
ec7f78a500 Run tests in aider/tests 2024-06-10 15:39:18 -07:00
Paul Gauthier
9de32c88c3 ignore README for actions 2024-06-05 16:14:21 -07:00
Paul Gauthier
0effca7e88 removed extra paths-ignore 2024-06-05 15:58:07 -07:00
Paul Gauthier
cc8151e3b2 aider: Add paths-ignore condition under the push event in workflows to prevent running if only files in the website/ subtree are changed.
# Aider chat conversation:

USER: do we need that under the `push:` too?

ASSISTANT: Yes, we should add the `paths-ignore` condition under the `push` event as well to ensure the workflows do not run if only files in the `website/` subtree are changed.

Here are the updated *SEARCH/REPLACE* blocks:

.github/workflows/windows-tests.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/windows-tests.yml
```yaml
<<<<<<< SEARCH
  push:
=======
  push:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/docker-build-test.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/docker-build-test.yml
```yaml
<<<<<<< SEARCH
  push:
=======
  push:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/ubuntu-tests.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/ubuntu-tests.yml
```yaml
<<<<<<< SEARCH
  push:
=======
  push:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```
2024-06-05 15:57:29 -07:00
Paul Gauthier
a10077f6c9 aider: Ensure workflows do not run if only files in the website/ subtree are changed.
# Aider chat conversation:

USER: these workflows currently run on any changes to the main branch; they don't need to run if only files in the wubsite/ subtree are changed

ASSISTANT: To ensure the workflows do not run if only files in the `website/` subtree are changed, we can add a `paths-ignore` condition to each workflow. Here are the changes:

.github/workflows/windows-tests.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/docker-build-test.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```

.github/workflows/ubuntu-tests.yml
```yaml
<<<<<<< SEARCH
  pull_request:
=======
  pull_request:
    paths-ignore:
      - 'website/**'
>>>>>>> REPLACE
```
2024-06-05 15:56:58 -07:00
Paul Gauthier
3e153cc7fa upgrade actions 2024-04-18 16:41:45 -07:00
Paul Gauthier
5c9bd4d405 Bump all dependencies, to pick up py-tree-sitter-languages 1.9.1 with py12 support 2024-01-04 07:48:00 -08:00
Paul Gauthier
43047c3835 Updated python versions for Ubuntu and Windows tests. 2023-08-17 08:34:57 -07:00
Paul Gauthier
b3d624b7cd Run windows tests on push 2023-07-05 15:26:06 -07:00
Paul Gauthier
de40f77a4f turn all windows tests back on 2023-07-05 15:20:37 -07:00
Paul Gauthier
f3af05f3ee simpler, faster run just failing test 2023-07-05 14:57:35 -07:00
Paul Gauthier
0ff4e5362b just 3.11 for windows for now 2023-07-05 14:39:21 -07:00
Paul Gauthier
eada60d169 renamed github actions 2023-07-05 14:30:58 -07:00
Paul Gauthier
bc6e958d7e aider: Remove push and pull_request triggers, add workflow_dispatch trigger to make the GitHub action only run when manually initiated.
# Context:
USER: can you stop this action from running on pushes/merges and make it so that it only runs when manually initiated?
ASSISTANT: Sure, to make the GitHub action only run when manually initiated, we need to modify the `.github/workflows/windows-tests.yml` file. We will remove the `push` and `pull_request` triggers and add a `workflow_dispatch` trigger.

Here is the change:

```yaml
.github/workflows/windows-tests.yml
<<<<<<< ORIGINAL
name: Windows Tests

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
=======
name: Windows Tests

on:
  workflow_dispatch:
>>>>>>> UPDATED
```

This change will make the workflow only run when manually triggered from the GitHub Actions UI.
2023-07-04 14:49:16 -07:00
Paul Gauthier
37e8c49f7a aider: Added step to install universal ctags using Chocolatey before installing Python dependencies.
# Context:
USER: we do need to install universal ctags on windows too
ASSISTANT: To install universal ctags on Windows, we need to modify the `windows-tests.yml` file. However, universal ctags is not available in the standard repositories used by GitHub Actions' Windows environment. We can use Chocolatey, a package manager for Windows, to install universal ctags.

Here are the changes:

```yaml
.github/workflows/windows-tests.yml
<<<<<<< ORIGINAL
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
=======
    - name: Install universal ctags
      run: |
        choco install universal-ctags

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
>>>>>>> UPDATED
```

This adds a new step to the workflow to install universal ctags using Chocolatey before installing the Python dependencies.
2023-07-04 14:43:34 -07:00
Paul Gauthier
2cdeae8fdd aider: Create a Windows workflow for running tests based on the existing Python workflow.
# Context:
USER: make a windows workflow to run the tests, based on the existing python workflow
ASSISTANT: To create a Windows workflow for running tests, we can use the existing Python workflow as a base. We will need to modify the `runs-on` field to specify a Windows environment, and adjust the commands for installing dependencies and running tests to be compatible with Windows.

Here are the changes:

```yaml
.github/workflows/windows-tests.yml
<<<<<<< ORIGINAL

=======
name: Windows Tests

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: windows-latest
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10", "3.11"]

    steps:
    - name: Check out repository
      uses: actions/checkout@v3

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

    - name: Run tests
      run: |
        python -m unittest discover -s tests
>>>>>>> UPDATED
```

This creates a new file `.github/workflows/windows-tests.yml` with the necessary configuration for running tests on a Windows environment. The Python version matrix, checkout, setup, and test steps are the same as in the original Python workflow. The command to install dependencies has been simplified, as the `universal-ctags` package is not required or available on Windows.
2023-07-04 14:42:53 -07:00
Paul Gauthier
8596a5725f Added new files to the git repo: .github/workflows/windows-tests.yml 2023-07-04 14:42:11 -07:00