Skip to content

Commit cb51ec4

Browse files
committed
fix github actions
1 parent 995cf9c commit cb51ec4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/python.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
# NOTE: This file is auto generated by OpenAPI Generator.
2-
# URL: https://openapi-generator.tech
3-
#
4-
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5-
61
name: t3api Python package
72

83
on: [push, pull_request]
94

105
jobs:
116
build:
12-
137
runs-on: ubuntu-latest
8+
149
strategy:
1510
matrix:
1611
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1712

1813
steps:
1914
- uses: actions/checkout@v4
15+
2016
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
2218
with:
2319
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
20+
21+
- name: Install uv
22+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
23+
24+
- name: Install dependencies with uv
2525
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r test-requirements.txt
26+
uv venv
27+
source .venv/bin/activate
28+
uv pip install -e .
29+
uv pip install pytest pytest-cov
30+
2931
- name: Test with pytest
3032
run: |
33+
source .venv/bin/activate
3134
pytest --cov=t3api

0 commit comments

Comments
 (0)