Commit graph

93 commits

Author SHA1 Message Date
Paul Gauthier
d1e35bcdd1 refactor: update stale issue handling and edit block replacement logic 2024-10-21 12:02:29 -07:00
Paul Gauthier
34ec197199 copy 2024-10-21 10:46:15 -07:00
Paul Gauthier (aider)
5a1cf67ea3 ci: add permissions for stale issue workflow 2024-10-21 10:39:45 -07:00
Paul Gauthier
e427e2da05 do not stale prs 2024-10-21 10:37:43 -07:00
Paul Gauthier (aider)
2cfd4d719a feat: add manual trigger for stale issue closure workflow 2024-10-21 10:30:19 -07:00
Paul Gauthier
bf46f6dc8b only stale questions 2024-10-21 10:26:55 -07:00
Paul Gauthier (aider)
259a18f3dd chore: update stale workflow to mark issues as stale after 14 days 2024-10-21 10:25:45 -07:00
Paul Gauthier (aider)
4c3aea4bfc feat: add stale issue and PR workflow 2024-10-21 10:04:26 -07:00
Paul Gauthier
6c595c261c chore: add GitHub action to close stale issues and PRs 2024-10-21 10:04:24 -07:00
Paul Gauthier
26058c89fe fix pages deploy 2024-10-14 12:57:02 -07:00
Paul Gauthier
692f6a7b85 update linkchecker install 2024-10-14 11:22:05 -07:00
Paul Gauthier
486c5ab224 build: don't login to docker hub for docker build test 2024-09-24 13:02:31 -07:00
Paul Gauthier (aider)
5d80e11e5b feat: Add Docker full image build to CI workflow 2024-09-21 13:59:50 -07:00
Paul Gauthier (aider)
971f317d3d build: Add HISTORY.md to ignore list in GitHub Actions workflows 2024-08-27 07:14:01 -07:00
Branch Vincent
aa6a538992
migrate to pyproject.toml 2024-08-12 19:49:59 -07:00
paul-gauthier
6e6ea5da51
Update ubuntu-tests.yml 2024-08-05 21:14:41 -03:00
Paul Gauthier
f8e76bcb88 Try py3.13 2024-08-05 11:11:19 -03:00
Paul Gauthier (aider)
e370b7aba3 feat: refactor docker build and release into its own workflow
BREAKING CHANGE: update tag regex to match semver pattern `v[0-9]+.[0-9]+.[0-9]+`

This change separates the concerns of PyPI release and Docker image release into two separate workflows. The original `release.yml` file has been renamed to `PyPI Release` and now only handles the PyPI package release. A new `docker-release.yml` file has been created to handle the Docker image build and push.

Both workflows are now triggered on tags matching the semver pattern `v[0-9]+.[0-9]+.[0-9]+`, which corresponds to tags like `vX.Y.Z`. The Docker-related steps have been moved from the original workflow to the new Docker-specific workflow.

This change ensures that both PyPI and Docker releases are triggered on the same semver-compliant tag pattern, while separating the concerns of the two release processes.
2024-07-31 09:09:15 -03:00
Paul Gauthier (aider)
4fded189f8 Build multi-stage Docker images for core "aider" and full "aider-full" versions 2024-07-30 17:11:12 -03: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
Paul Gauthier
22a494bb59 moved website/ -> aider/website/ 2024-07-05 10:01:30 -03:00
Paul Gauthier
5e26014dae check links on pages build 2024-07-03 15:33:47 -03:00
Taha YASSINE
acffd54297 Remove universal ctags install from workflows 2024-07-01 22:19:13 +01:00
Paul Gauthier
85bac4d529 Pin importlib-metadata==7.2.1 in release.yml 2024-06-25 13:44:58 -07: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
4afc0be2e2 updated pages.yml 2024-06-05 14:53:06 -07:00
Paul Gauthier
69d6993871 added pages workflow 2024-06-05 14:45:22 -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
531ea58eb6 use env to test secrets 2023-12-31 10:12:05 -08:00
Paul Gauthier
9d4fcff921 Updated docker-build-test workflow to always check for DockerHub credentials before building. 2023-12-31 10:08:35 -08:00
Paul Gauthier
1b43dddec5 aider: This change corrected the conditional expression for the Docker login step by removing the incorrect ${{ }} around secrets.DOCKERHUB_USERNAME and secrets.DOCKERHUB_PASSWORD and adding a check for the github.event_name to ensure that the login step is only executed when it's not a pull request or when the secrets are available.
# Aider chat conversation:

USER: The workflow is not valid. .github/workflows/docker-build-test.yml (Line: 30, Col: 11): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DOCKERHUB_USERNAME

ASSISTANT: ```diff
--- .github/workflows/docker-build-test.yml
+++ .github/workflows/docker-build-test.yml
@@ ... @@
       uses: docker/login-action@v3
       with:
         username: ${{ secrets.DOCKERHUB_USERNAME }}
         password: ${{ secrets.DOCKERHUB_PASSWORD }}
-      if: ${{ secrets.DOCKERHUB_USERNAME }} && ${{ secrets.DOCKERHUB_PASSWORD }}
+      if: ${{ github.event_name != 'pull_request' || (secrets.DOCKERHUB_USERNAME && secrets.DOCKERHUB_PASSWORD) }}
```

This change corrects the conditional expression for the Docker login step by removing the incorrect `${{ }}` around `secrets.DOCKERHUB_USERNAME` and `secrets.DOCKERHUB_PASSWORD` and adding a check for the `github.event_name` to ensure that the login step is only executed when it's not a pull request or when the secrets are available.
2023-12-31 10:06:59 -08:00
Joshua Vial
62da17e333 aider: Adjust DockerHub login action to complete without failing if credentials are not present.
# Aider chat conversation:

USER: please adjust this github action file so it will complete without failing if the dockerhub_username or password are not there

ASSISTANT: ```diff
--- .github/workflows/docker-build-test.yml
+++ .github/workflows/docker-build-test.yml
@@ ... @@
     - name: Login to DockerHub
       uses: docker/login-action@v3
       with:
         username: ${{ secrets.DOCKERHUB_USERNAME }}
         password: ${{ secrets.DOCKERHUB_PASSWORD }}
+      if: ${{ secrets.DOCKERHUB_USERNAME }} && ${{ secrets.DOCKERHUB_PASSWORD }}
```
2023-12-28 11:07:35 +13:00
Paul Gauthier
c9aa36d7b6 Put build-essential back into dockerfile 2023-10-31 14:52:04 -07:00
Paul Gauthier
702fc0c6ea restore release.yml, do multi arch build in docker-build-test.yml 2023-10-31 14:48:37 -07:00
Paul Gauthier
982c58a94d just arm64 2023-10-31 14:40:07 -07:00