File tree Expand file tree Collapse file tree 5 files changed +2544
-3188
lines changed
Expand file tree Collapse file tree 5 files changed +2544
-3188
lines changed Original file line number Diff line number Diff line change @@ -11,30 +11,25 @@ jobs:
1111 steps :
1212 - uses : actions/checkout@v3
1313
14- - name : Set up Python ${{ matrix.python-version }}
15- uses : actions/setup-python@v4
16- with :
17- python-version : ${{ matrix.python-version }}
14+ - name : Install uv
15+ uses : astral-sh/setup-uv@v3
1816
19- - name : Python Poetry Action
20- 21- with :
22- poetry-version : ' 1.5.1'
17+ - name : Set up Python ${{ matrix.python-version }}
18+ run : uv python install ${{ matrix.python-version }}
2319
2420 - name : Install dependencies
25- run : poetry install --all-extras
21+ run : uv sync --all-extras
2622
2723 -
uses :
pre-commit/[email protected] 2824
2925 - name : Test with pytest
3026 run : |
31- poetry run pytest
27+ uv run --extra tests pytest
3228
3329 - name : Test readme notebook
3430 run : |
35- poetry install --with readme
36- poetry run jupyter nbconvert --to markdown README.ipynb
31+ uv run --extra readme jupyter nbconvert --to markdown README.ipynb
3732
3833 - name : Test docs build
3934 run : |
40- poetry run mkdocs build
35+ uv run --extra docs mkdocs build
Original file line number Diff line number Diff line change @@ -16,18 +16,14 @@ jobs:
1616 - name : Install compiler
1717 run : sudo apt-get install build-essential
1818
19- - name : Set up Python 3.10
20- uses : actions/setup-python@v4
21- with :
22- python-version : ' 3.10'
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v3
2321
24- - name : Python Poetry Action
25- 26- with :
27- poetry-version : ' 1.5.1'
22+ - name : Set up Python 3.10
23+ run : uv python install 3.10
2824
2925 - name : Export dependencies
30- run : poetry export --with docs --without -hashes --output requirements.txt
26+ run : uv export --extra docs --no -hashes --output-file requirements.txt
3127
3228 - name : Deploy docs
3329 uses : mhausenblas/mkdocs-deploy-gh-pages@master
You can’t perform that action at this time.
0 commit comments