-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix CI scripts * Use uv for speeeeed * Use scripts/install in github action
- Loading branch information
1 parent
319635a
commit 088dc65
Showing
6 changed files
with
34 additions
and
18 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
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#! /bin/bash -ex | ||
|
||
ruff format tests hishel --diff | ||
ruff tests hishel | ||
mypy tests hishel | ||
python unasync.py --check | ||
export PREFIX="" | ||
if [ -d '.venv' ] ; then | ||
export PREFIX=".venv/bin/" | ||
fi | ||
export SOURCE_FILES="hishel tests" | ||
|
||
${PREFIX}ruff format $SOURCE_FILES --diff | ||
${PREFIX}ruff check $SOURCE_FILES | ||
${PREFIX}mypy $SOURCE_FILES | ||
${PREFIX}python unasync.py --check |
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,9 +1,9 @@ | ||
#! /bin/bash -x | ||
|
||
rm -rf venv | ||
python -m venv venv | ||
rm -rf .venv | ||
pip install uv | ||
uv venv | ||
|
||
source venv/bin/activate | ||
source .venv/bin/activate | ||
|
||
pip install --upgrade pip | ||
pip install -r requirements.txt | ||
uv pip install -r requirements.txt |
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,5 +1,11 @@ | ||
#! /bin/bash -ex | ||
|
||
ruff format hishel tests | ||
ruff check --fix hishel tests | ||
python unasync.py | ||
export PREFIX="" | ||
if [ -d '.venv' ]; then | ||
export PREFIX=".venv/bin/" | ||
fi | ||
export SOURCE_FILES="hishel tests" | ||
|
||
${PREFIX}ruff check --fix $SOURCE_FILES | ||
${PREFIX}ruff format $SOURCE_FILES | ||
${PREFIX}python unasync.py |
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,7 +1,11 @@ | ||
#! /bin/bash -e | ||
set -x | ||
#! /bin/bash -ex | ||
|
||
export PREFIX="" | ||
if [ -d '.venv' ] ; then | ||
export PREFIX=".venv/bin/" | ||
fi | ||
|
||
./scripts/check | ||
coverage run -m pytest tests | ||
${PREFIX}coverage run -m pytest tests | ||
|
||
coverage report --show-missing --skip-covered --fail-under=100 | ||
${PREFIX}coverage report --show-missing --skip-covered --fail-under=100 |