Skip to content

Commit 2ed92f5

Browse files
committed
chore(ci): update build instructions
1 parent b25bc34 commit 2ed92f5

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/main.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,23 @@ jobs:
3535
cache: "pip"
3636
cache-dependency-path: |
3737
**/pyproject.toml
38-
**/requirements*.txt
39-
**/test-requirements*.txt
4038
4139
- name: Install dependencies
4240
run: |
43-
pip install -r test-requirements.txt --upgrade pip
41+
pip install uv
4442
pip install "urllib3==${{ matrix.urllib3-version }}"
45-
46-
- if: matrix.python-version == '3.10' && matrix.urllib3-version == '1.26.19'
47-
name: Run `ruff`
48-
run: ruff check
43+
export UV_LINK_MODE=copy && \
44+
uv sync && \
45+
uv run ruff check --select I --fix . && \
46+
uv run ruff format . && \
47+
uv build
4948
5049
- name: Run tests and collect coverage
51-
run: pytest --cov-fail-under 60 --cov openfga_sdk
50+
run: |
51+
export UV_LINK_MODE=copy && \
52+
uv sync && \
53+
uv run pytest --cov-report term-missing --cov=openfga_sdk --cov-fail-under=60 test/ && \
54+
uv run ruff check .
5255
5356
- if: matrix.python-version == '3.10' && matrix.urllib3-version == '1.26.19'
5457
name: Upload coverage to Codecov

0 commit comments

Comments
 (0)