Skip to content

Commit cdd8212

Browse files
authored
Merge pull request #3 from redis-developer/feat/redisvl-integration-tests
Add release.yml
2 parents c36d851 + 083fe6a commit cdd8212

3 files changed

Lines changed: 91 additions & 8 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222

2323
steps:
2424
- name: Check out repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626

2727
- name: Install Python
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

3232
- name: Install uv
33-
uses: astral-sh/setup-uv@v4
33+
uses: astral-sh/setup-uv@v6
3434
with:
3535
version: ${{ env.UV_VERSION }}
3636
enable-cache: true
37-
python-version: ${{ matrix.python-version }}
37+
python-version: ${{ matrix.python-version }} # sets UV_PYTHON
3838
cache-dependency-glob: |
3939
pyproject.toml
4040
uv.lock

.github/workflows/release.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Publish Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
PYTHON_VERSION: "3.11"
9+
UV_VERSION: "0.7.13"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v6
18+
19+
- name: Install Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: ${{ env.PYTHON_VERSION }}
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
version: ${{ env.UV_VERSION }}
28+
enable-cache: true
29+
python-version: ${{ env.PYTHON_VERSION }} # sets UV_PYTHON
30+
cache-dependency-glob: |
31+
pyproject.toml
32+
uv.lock
33+
34+
- name: Install dependencies
35+
run: |
36+
uv sync --frozen
37+
38+
- name: Build package
39+
run: uv build
40+
41+
- name: Upload build
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: dist
45+
path: dist/
46+
47+
publish:
48+
needs: build
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- name: Check out repository
53+
uses: actions/checkout@v6
54+
55+
- name: Install Python
56+
uses: actions/setup-python@v6
57+
with:
58+
python-version: ${{ env.PYTHON_VERSION }}
59+
60+
- name: Install uv
61+
uses: astral-sh/setup-uv@v6
62+
with:
63+
version: ${{ env.UV_VERSION }}
64+
enable-cache: true
65+
python-version: ${{ env.PYTHON_VERSION }} # sets UV_PYTHON
66+
cache-dependency-glob: |
67+
pyproject.toml
68+
uv.lock
69+
70+
- name: Install dependencies
71+
run: |
72+
uv sync --frozen
73+
74+
- name: Download build artifacts
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: dist
78+
path: dist/
79+
80+
- name: Publish to PyPI
81+
env:
82+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI }}
83+
run: uv publish

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ jobs:
2121

2222
steps:
2323
- name: Check out repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525

2626
- name: Install Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v4
32+
uses: astral-sh/setup-uv@v6
3333
with:
3434
version: ${{ env.UV_VERSION }}
3535
enable-cache: true
36-
python-version: ${{ matrix.python-version }}
36+
python-version: ${{ matrix.python-version }} # sets UV_PYTHON
3737
cache-dependency-glob: |
3838
pyproject.toml
3939
uv.lock

0 commit comments

Comments
 (0)