@@ -26,24 +26,26 @@ jobs:
2626
2727 steps :
2828 - uses : actions/checkout@v2
29- - uses : actions/setup-python@v2
29+ - name : Install uv
30+ uses : astral-sh/setup-uv@v4
3031 with :
31- python-version : " ${{ matrix.python-version }}"
32- - name : Install dev dependencies
32+ enable-cache : true
33+ - name : Set up Python ${{ matrix.python-version }}
34+ run : uv python install ${{ matrix.python-version }}
35+ - name : Install dependencies
3336 run : |
34- python -m pip install --upgrade pip
35-
3637 # include requirements if specified
3738 if [ -n "$REQUIREMENTS" ]; then
38- python -m pip install $REQUIREMENTS '.[dev]'
39+ uv sync --group dev
40+ uv pip install $REQUIREMENTS
3941 else
40- python -m pip install '.[ dev]'
42+ uv sync --group dev
4143 fi
4244 env :
4345 REQUIREMENTS : ${{ matrix.requirements }}
4446 - name : Run tests
4547 run : |
46- pytest --cov
48+ uv run pytest --cov
4749 - name : Upload results to Codecov
4850 uses : codecov/codecov-action@v4
4951 with :
@@ -54,13 +56,14 @@ jobs:
5456 runs-on : ubuntu-latest
5557 steps :
5658 - uses : actions/checkout@v2
57- - uses : actions/setup-python@v2
59+ - name : Install uv
60+ uses : astral-sh/setup-uv@v4
5861 with :
59- python-version : " 3.10 "
60- - name : Install dev dependencies
61- run : |
62- python -m pip install --upgrade pip
63- python -m pip install ".[ dev]"
62+ enable-cache : true
63+ - name : Set up Python 3.10
64+ run : uv python install 3.10
65+ - name : Install dependencies
66+ run : uv sync --group dev
6467 - uses : pre-commit/action@v3.0.0
6568
6669 release-pypi :
@@ -87,16 +90,19 @@ jobs:
8790 runs-on : ubuntu-latest
8891 steps :
8992 - uses : actions/checkout@v2
90- - uses : actions/setup-python@v2
93+ - name : Install uv
94+ uses : astral-sh/setup-uv@v4
9195 with :
92- python-version : " 3.10"
96+ enable-cache : true
97+ - name : Set up Python 3.10
98+ run : uv python install 3.10
9399 - name : Install dependencies
94100 run : |
95- python -m pip install ".[ dev]"
101+ uv sync --group dev
96102 # TODO: temporary installs for examples
97103 # once quartodoc is stable we should move into their own libraries
98- python -m pip install shiny shinylive
99- python -m pip install --no-deps dascore==0.0.8
104+ uv pip install shiny shinylive
105+ uv pip install --no-deps dascore==0.0.8
100106 - uses : quarto-dev/quarto-actions/setup@v2
101107 - name : Test building starter template
102108 run : |
0 commit comments