@@ -12,41 +12,42 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- python-version : ["3.8", "3.9", "3.10", "3.11", "3. 12"]
15
+ python-version : ["3.8", "3.12"]
16
16
steps :
17
- - uses : actions/checkout@v4
18
- - name : Set up Python ${{ matrix.python-version }}
19
- uses : actions/setup-python@v5
20
- with :
21
- python-version : ${{ matrix.python-version }}
22
- cache : pip
23
- cache-dependency-path : pyproject.toml
24
- - name : Install dependencies
25
- run : |
26
- pip install '.[test]'
27
- - name : Run tests
28
- run : |
29
- pytest
17
+ - uses : actions/checkout@v4
18
+ - name : Set up Python ${{ matrix.python-version }}
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : ${{ matrix.python-version }}
22
+ cache : pip
23
+ cache-dependency-path : pyproject.toml
24
+ - name : Install dependencies
25
+ run : |
26
+ pip install '.[test]'
27
+ - name : Run tests
28
+ env :
29
+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
30
+ run : |
31
+ pytest
30
32
deploy :
31
33
runs-on : ubuntu-latest
32
34
needs : [test]
33
35
environment : release
34
36
permissions :
35
37
id-token : write
36
38
steps :
37
- - uses : actions/checkout@v4
38
- - name : Set up Python
39
- uses : actions/setup-python@v5
40
- with :
41
- python-version : " 3.12"
42
- cache : pip
43
- cache-dependency-path : pyproject.toml
44
- - name : Install dependencies
45
- run : |
46
- pip install setuptools wheel build
47
- - name : Build
48
- run : |
49
- python -m build
50
- - name : Publish
51
- uses : pypa/gh-action-pypi-publish@release/v1
52
-
39
+ - uses : actions/checkout@v4
40
+ - name : Set up Python
41
+ uses : actions/setup-python@v5
42
+ with :
43
+ python-version : " 3.12"
44
+ cache : pip
45
+ cache-dependency-path : pyproject.toml
46
+ - name : Install dependencies
47
+ run : |
48
+ pip install setuptools wheel build
49
+ - name : Build
50
+ run : |
51
+ python -m build
52
+ - name : Publish
53
+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments