33
33
uses : actions/setup-python@v5
34
34
with :
35
35
python-version : ${{ matrix.python-version }}
36
- cache : " pip"
36
+ - name : Download uv (non-Windows)
37
+ if : ${{ runner.os != 'Windows' }}
38
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
39
+ - name : Download uv (Windows)
40
+ if : ${{ runner.os == 'Windows' }}
41
+ run : irm https://astral.sh/uv/install.ps1 | iex
37
42
- name : Install package with dev requirements
38
- run : pip install .[dev]
43
+ run : uv pip install --system .[dev]
39
44
- name : Run pre-commit
40
45
run : pre-commit run --all-files
41
46
- name : Run pytest
@@ -57,13 +62,14 @@ jobs:
57
62
- uses : actions/setup-python@v5
58
63
with :
59
64
python-version : 3.9
60
- cache : " pip"
61
- - name : Install with dev requirements
62
- run : pip install .[dev]
63
- - name : Install minimum requirements
64
- run : ./scripts/install-min-requirements
65
- - name : Test
66
- run : ./scripts/test
65
+ - name : Download uv
66
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
67
+ - name : Install dev requirements
68
+ run : uv pip install --system .[dev]
69
+ - name : Install with min requirements
70
+ run : uv pip install --system --resolution=lowest-direct --reinstall .
71
+ - name : Run pytest
72
+ run : pytest -Werror -s --block-network
67
73
68
74
docs :
69
75
name : docs
@@ -96,13 +102,14 @@ jobs:
96
102
- uses : actions/setup-python@v5
97
103
with :
98
104
python-version : 3.9
99
- cache : " pip"
100
- - name : Install
101
- run : pip install .[dev]
105
+ - name : Download uv
106
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
107
+ - name : Install with dev requirements
108
+ run : uv pip install --system --pre .[dev]
102
109
- name : Install any pre-releases of pystac
103
- run : pip install -U --pre pystac
104
- - name : Test
105
- run : ./scripts/test
110
+ run : uv pip install --system -U --pre pystac
111
+ - name : Run pytest
112
+ run : pytest -Werror -s --block-network
106
113
107
114
upstream :
108
115
name : upstream
@@ -113,13 +120,14 @@ jobs:
113
120
- uses : actions/setup-python@v5
114
121
with :
115
122
python-version : 3.9
116
- cache : " pip"
123
+ - name : Download uv
124
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
117
125
- name : Install
118
- run : pip install .[dev]
126
+ run : uv pip install .[dev]
119
127
- name : Install pystac from main
120
- run : pip install --force-reinstall git+https://github.com/stac-utils/pystac.git
121
- - name : Test
122
- run : ./scripts/test
128
+ run : uv pip install --system --force-reinstall git+https://github.com/stac-utils/pystac.git
129
+ - name : Run pytest
130
+ run : pytest -Werror -s --block-network
123
131
124
132
dev-and-docs-requirements :
125
133
name : dev and docs requirements check
@@ -129,8 +137,9 @@ jobs:
129
137
- uses : actions/setup-python@v5
130
138
with :
131
139
python-version : 3.9
132
- cache : " pip"
140
+ - name : Download uv
141
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
133
142
- name : Install geos
134
143
run : sudo apt -y install libgeos-dev
135
144
- name : Install
136
- run : pip install .[dev,docs]
145
+ run : uv pip install --system .[dev,docs]
0 commit comments