22 Commits

Author SHA1 Message Date
Jakub Dobry
c5e64341cc
chore(ci): add unified SDK tests workflow with staging (#1141) 2026-02-17 09:15:31 -08:00
Mish Ushakov
6ff14f8b2e
Add Windows CI to test matrix (#1020)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Add Windows to CI matrices and make JS/Python utils and tests
cross-platform via path handling updates.
> 
> - **CI**:
> - Add Windows to test matrices in `cli_tests.yml`, `js_sdk_tests.yml`,
`python_sdk_tests.yml`; set bash shell/workdirs; disable fail-fast for
some jobs.
>   - Python CI runs `pytest -n 4` via Poetry.
> - **JS SDK**:
> - Path normalization for globbing (`normalizePath`) and use of
`Path.relativePosix()` in hashing and tar creation in
`src/template/utils.ts`.
> - **Python SDK**:
> - Add `normalize_path` and use forward-slash glob patterns in
`e2b/template/utils.py`.
> - **Tests**:
> - Make stack trace parsing robust to Windows paths; use `basename` in
file assertions; adjust Python tar tests tempdir fixture handling.
> - **Changeset**: add patch note for windows-related fixes.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1b8dbe4a1af642dbcb86500837e93f7998b223f6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Joseph Lombrozo <joe.lombrozo@e2b.dev>
2025-11-26 09:50:26 -08:00
Joseph Lombrozo
d2e22e3748
Some general pytest cleanup (#1021)
- Individual tests must complete in less than 5 minutes
- Add a `make test` option that runs tests
- Upgrade poetry to 2.1.1 (the lock file was generated by this version,
so this just matches what we already expect)
2025-11-13 17:58:30 -08:00
Joseph Lombrozo
2942f481ad
Use .tool-versions file to sync local dev and github actions (#955)
This way a version bump in the `.tool-versions` file is automatically
used in tests, linters, releases, and local dev. It also helps make it
clear which version we expect people to use locally.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Add .tool-versions and update GitHub Actions to parse and use its
values for pnpm, Node.js, Python, Poetry, and Deno.
> 
> - **CI Workflows**:
> - Add parsing of `.tool-versions` via
`wistia/parse-tool-versions@v2.1.1` in `cli_tests.yml`,
`generated_files.yml`, `js_sdk_tests.yml`, `lint.yml`,
`publish_packages.yml`, `python_sdk_tests.yml`, `release.yml`,
`release_candidates.yml`.
>   - Replace hardcoded versions with `${{ env.TOOL_VERSION_* }}`:
>     - `pnpm`: `TOOL_VERSION_PNPM`
>     - `node-version`: `TOOL_VERSION_NODEJS`
>     - `python-version`: `TOOL_VERSION_PYTHON`
>     - `poetry` installer `version`: `TOOL_VERSION_POETRY`
>     - `deno-version`: `TOOL_VERSION_DENO`
> - **Tooling**:
> - Add `.tool-versions` specifying `deno 1.46.3`, `nodejs 20.19.5`,
`pnpm 9.15.5`, `python 3.9`, `poetry 1.8.3`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
358b62f586f3dfa164ad331f0ee7c7372e96bfac. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-10-15 16:12:30 -07:00
Joseph Lombrozo
5014ee2609
Upgrade to latest 1.8.x version of poetry (#947)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Update CI to use Poetry 1.8.3 across workflows and add
`.tool-versions` (Python 3.9.24, Poetry 1.8.3) for the Python SDK.
> 
> - **CI/Workflows**:
> - Bump Poetry from `1.5.1` to `1.8.3` in
`/.github/workflows/{lint.yml,publish_packages.yml,python_sdk_tests.yml,release_candidates.yml}`.
> - **Tooling**:
> - Add `packages/python-sdk/.tool-versions` specifying `python 3.9.24`
and `poetry 1.8.3`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9ae519772a9cd62333313dcc594edcc90a591c0a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-10-13 17:35:02 -07:00
Jakub Novák
3cfed0e4c0
Refactor workflows to enable requiring tests in PRs (#703)
# Description

Refactor to enable successful status checks for tests
2025-04-25 14:20:17 +02:00
Jakub Novák
d65de1bbe8
Update Ubuntu base image to 22.04 (#653)
# Description

There is a scheduled Ubuntu 20.04 brownout. Ubuntu 20.04 LTS runner will
be removed on 2025-04-15. For more details, see
https://github.com/actions/runner-images/issues/11101
2025-04-01 08:50:51 -07:00
r33drichards
60ece872e5
Run tests on prs to avoid broken builds (#619) 2025-03-19 16:26:25 -07:00
Jakub Novak
d69317437c Respect the limit from pytest configuration 2024-10-22 13:38:24 -07:00
Jakub Novak
0c8674abc5 Update min supported version of python to 3.9 2024-10-15 08:06:43 -07:00
Tomas Valenta
a55e454790 Add deno and bun GHA tests 2024-07-23 16:39:12 +02:00
Tomas Valenta
d78153ed38 Fix Python 3.8 compatibility; Change Python and Node versions in CI/CD 2024-07-10 17:33:35 -07:00
Jakub Novak
35b20c8711
Fix type issue in Python 3.8 2024-02-29 10:00:02 -08:00
Tomas Valenta
ffcf1a8c45 Stop testing after first failed test 2023-11-24 20:36:19 +01:00
Jakub Novák
388309830b
New infra (#212)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
2023-11-06 15:07:09 +01:00
Tomas Valenta
7577f9087f Make the python tests verbose 2023-10-18 14:17:20 -07:00
Tomas Valenta
836e3ccb65 Cleanup tests 2023-10-18 13:58:51 -07:00
Tomas Valenta
4816b953c5 Fix step names 2023-10-18 12:22:56 -07:00
Jakub Novak
05b2d04b1c
Fix the naming in the python action 2023-10-13 19:47:35 -07:00
Jakub Novak
1267bb56b5
Fix release yaml 2023-10-02 15:53:55 +02:00
Jakub Novak
d1c6854e9b
Split Release action into multiple jobs 2023-10-02 15:51:00 +02:00
Pavel 'Strajk' Dolecek
4eba0e1232
chore(js-sdk,cli): Compat with Node 16 (#163)
Co-authored-by: Jakub Novák <jakub@e2b.dev>
2023-09-25 14:57:13 +02:00