5
5
branches : ["main", "development"]
6
6
pull_request :
7
7
branches : ["main", "development"]
8
- workflow_dispatch : # Allow manual triggering
8
+ workflow_dispatch :
9
9
10
10
jobs :
11
11
test :
12
- name : Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
12
+ name : Test on ${{ matrix.os }}
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
- fail-fast : false # Don't cancel other jobs if one fails
15
+ fail-fast : true
16
16
matrix :
17
17
os : [ubuntu-latest, windows-latest, macos-latest]
18
- python-version : ["3.10", "3.12"]
19
18
20
19
steps :
21
20
- uses : actions/checkout@v4
22
21
with :
23
- fetch-depth : 0 # Fetch all history for proper versioning
24
-
25
- - name : Set up Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v4
27
- with :
28
- python-version : ${{ matrix.python-version }}
29
- cache : ' pip' # Cache pip dependencies
30
-
31
- - name : Install poetry
32
- shell : bash
33
- run : |
34
- python -m pip install --upgrade pip
35
- pip install poetry
36
-
37
- - name : Configure poetry
38
- shell : bash
39
- run : |
40
- poetry config virtualenvs.create true
41
- poetry config virtualenvs.in-project true
42
-
43
- - name : Cache poetry dependencies
44
- uses : actions/cache@v3
45
- with :
46
- path : ./.venv
47
- key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
48
-
49
- - name : Install dependencies
22
+ fetch-depth : 0
23
+
24
+ - name : Install Open Interpreter
50
25
shell : bash
51
26
run : |
52
- poetry install --no-interaction --all-extras
27
+ curl https://raw.githubusercontent.com/OpenInterpreter/open-interpreter/refs/heads/development/installers/new-installer.sh | sh
53
28
54
29
- name : Run tests
55
30
shell : bash
56
31
run : |
57
- poetry run pytest tests/ -v --color=yes
32
+ interpreter run tests/ -v --color=yes
58
33
env :
59
34
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
60
- PYTHONUNBUFFERED : " 1" # For real-time test output
61
-
62
- - name : Upload test results
63
- if : always() # Run even if tests fail
64
- uses : actions/upload-artifact@v3
65
- with :
66
- name : test-results-${{ matrix.os }}-${{ matrix.python-version }}
67
- path : |
68
- .pytest_cache
69
- pytest-report.xml
70
- if-no-files-found : ignore
35
+ PYTHONUNBUFFERED : " 1"
0 commit comments