Skip to content

Commit 549d044

Browse files
authored
feat: Test pypi (#7)
* feat: release candidate * ci: test pypi * fix: version
1 parent 3d67c2c commit 549d044

File tree

5 files changed

+3
-202
lines changed

5 files changed

+3
-202
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
with:
3939
user: __token__
4040
password: ${{ secrets.TEST_PYPI_TOKEN }}
41+
repository-url: https://test.pypi.org/legacy/

.github/workflows/test.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -77,44 +77,3 @@ jobs:
7777
path: junit/test-results-${{ matrix.python-version }}.xml
7878
# Use always() to always run this step to publish test results when there are test failures
7979
if: ${{ always() }}
80-
81-
integration-tests:
82-
runs-on: ubuntu-latest
83-
84-
if: github.ref == 'refs/heads/main'
85-
86-
strategy:
87-
matrix:
88-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
89-
steps:
90-
- name: Checkout
91-
uses: actions/checkout@v3
92-
- name: Install Poetry
93-
run: |
94-
pipx install poetry
95-
- name: Set up Python
96-
uses: actions/setup-python@v4
97-
with:
98-
python-version: ${{ matrix.python-version }}
99-
cache: poetry
100-
cache-dependency-path: poetry.lock
101-
- name: Set Poetry environment
102-
run: |
103-
poetry env use ${{ matrix.python-version }}
104-
- name: Install dependencies
105-
run: |
106-
poetry install --all-extras
107-
- name: Run Integration Tests
108-
env:
109-
AI21_API_KEY: ${{ secrets.AI21_API_KEY }}
110-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
111-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
112-
run: |
113-
poetry run pytest tests/integration_tests/
114-
- name: Upload pytest integration tests results
115-
uses: actions/upload-artifact@v3
116-
with:
117-
name: pytest-results-${{ matrix.python-version }}
118-
path: junit/test-results-${{ matrix.python-version }}.xml
119-
# Use always() to always run this step to publish test results when there are test failures
120-
if: ${{ always() }}

CHANGELOG.md

Lines changed: 0 additions & 159 deletions
This file was deleted.

ai21/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.1.0-rc.1"
1+
VERSION = "1.9.0"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exclude_lines = [
4646

4747
[tool.poetry]
4848
name = "ai21"
49-
version = "0.1.0-rc.1"
49+
version = "1.9.0"
5050
description = ""
5151
authors = ["AI21 Labs"]
5252
readme = "README.md"

0 commit comments

Comments
 (0)