Skip to content

Commit b92b147

Browse files
Restore UV package manager in GitHub workflow
Co-authored-by: Jay Hack <jay@codegen.com>
1 parent ca13414 commit b92b147

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/python.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55

66
name: codegen_api_client Python package
77

8-
on: [push, pull_request]
8+
on:
9+
push:
10+
branches:
11+
- develop
12+
pull_request:
13+
branches:
14+
- develop
915

1016
jobs:
1117
build:
@@ -17,15 +23,12 @@ jobs:
1723

1824
steps:
1925
- uses: actions/checkout@v4
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
26+
- name: Set up UV ${{ matrix.python-version }}
27+
uses: astral-sh/setup-uv@v5
2228
with:
29+
enable-cache: true
2330
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r test-requirements.txt
2931
- name: Test with pytest
3032
run: |
31-
pytest --cov=codegen_api_client
33+
uv run pytest --cov=codegen_api_client
34+

0 commit comments

Comments
 (0)