Skip to content

Commit 119de2d

Browse files
committed
chore(ci): update build instructions
1 parent b25bc34 commit 119de2d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/main.yaml

Lines changed: 12 additions & 9 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
44-
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
41+
pip install uv
42+
export UV_LINK_MODE=copy && \
43+
uv sync --group dev && \
44+
uv run ruff check --select I --fix . && \
45+
uv run ruff format . && \
46+
uv build
4947
5048
- name: Run tests and collect coverage
51-
run: pytest --cov-fail-under 60 --cov openfga_sdk
49+
run: |
50+
export UV_LINK_MODE=copy && \
51+
uv sync --group dev && \
52+
uv run --with "urllib3==${{ matrix.urllib3-version }}" \
53+
pytest --cov-report term-missing --cov=openfga_sdk --cov-fail-under=80 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)