-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pre-release: Update CI workflow for uv
- Loading branch information
Showing
69 changed files
with
9,209 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ omit = | |
MagicMock/* | ||
test_*.py | ||
examples/* | ||
src/builds/* | ||
|
||
[report] | ||
exclude_lines = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,32 @@ | ||
# name: CI | ||
name: CI | ||
|
||
# on: | ||
# push: | ||
# branches: [ "develop", "master" ] | ||
# pull_request: | ||
# branches: [ "develop", "master" ] | ||
on: | ||
push: | ||
branches: [ "master", "pre-release" ] | ||
pull_request: | ||
branches: [ "master", "pre-release" ] | ||
|
||
# jobs: | ||
# test: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# python-version: ["3.9", "3.10", "3.11"] | ||
# fail-fast: false | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
fail-fast: false | ||
|
||
# steps: | ||
# - uses: actions/checkout@v4 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# - name: Set up Python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
|
||
# - name: Set up pip cache | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: ~/.cache/pip | ||
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-pip- | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
enable-cache: true | ||
|
||
# - name: Install PyTorch CPU | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
- name: Install dependencies | ||
run: | | ||
uv pip install -e .[test,cpu] | ||
# - name: Install dependencies | ||
# run: | | ||
# pip install ruff pytest-cov | ||
# pip install -r requirements.txt | ||
# pip install -r requirements-test.txt | ||
|
||
# - name: Lint with ruff | ||
# run: | | ||
# ruff check . | ||
|
||
|
||
# - name: Test with pytest | ||
# run: | | ||
# pytest --asyncio-mode=auto --cov=api --cov-report=term-missing | ||
- name: Run Tests | ||
run: | | ||
uv run pytest api/tests/ --asyncio-mode=auto --cov=api --cov-report=term-missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
line-length = 88 | ||
|
||
exclude = ["examples"] | ||
|
||
[lint] | ||
select = ["I"] | ||
|
||
[lint.isort] | ||
combine-as-imports = true | ||
force-wrap-aliases = true | ||
length-sort = true | ||
split-on-trailing-comma = true | ||
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.