Skip to content

Commit

Permalink
chore(ci): speed up with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed May 30, 2024
1 parent b8bdc7e commit 4c833a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ jobs:
python-version: "3.12"
- name: Install dependencies
working-directory: python
env: { UV_SYSTEM_PYTHON: true }
run: |
python -m pip install -U pip poetry
poetry install --all-extras --with dev
pip install uv
uv install .[all] isort black
- name: Run isort check
working-directory: python
run: |
poetry run isort . --check --diff
isort . --check --diff
- name: Run black check
working-directory: python
run: |
poetry run black . --check --diff
black . --check --diff
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
working-directory: python
env: { UV_SYSTEM_PYTHON: true }
run: |
python -m pip install -U pip poetry
poetry install --all-extras --with dev
pip install uv
uv pip install .[all] pytest pytest-asyncio coverage
- name: Run tests
working-directory: python
run: |
poetry run coverage run -m pytest
coverage run -m pytest
- name: Show coverage report
working-directory: python
run: |
poetry run coverage report
coverage report
- name: Check types
working-directory: python
run: |
poetry run npx -y pyright
npx -y pyright

0 comments on commit 4c833a3

Please sign in to comment.