Skip to content

Commit 59db96f

Browse files
committed
fixing the publish pipeline
1 parent 69f68d5 commit 59db96f

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,42 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.8", "3.12"]
1616
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
3032
deploy:
3133
runs-on: ubuntu-latest
3234
needs: [test]
3335
environment: release
3436
permissions:
3537
id-token: write
3638
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

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.8", "3.12"]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)