@@ -29,45 +29,64 @@ jobs:
2929 docs :
3030 name : Build Docs
3131 runs-on : ubuntu-latest
32- defaults :
33- run :
34- shell : bash -l {0}
3532 steps :
3633 - name : Check out repo
37- uses : actions/checkout@v6
38-
39- - name : Setup docs env same as on RTD
40- uses : mamba-org/setup-micromamba@v2
34+ uses : actions/checkout@v4
35+ - name : Set up Python 3.10
36+ uses : actions/setup-python@v5
4137 with :
42- environment-file : docs/environment.yml
43- cache-environment : true
38+ python-version : " 3.10"
39+ - name : Install asdf package manager
40+ uses : asdf-vm/actions/setup@v4
4441
42+ - name : Install pandoc
43+ run : |
44+ asdf plugin add pandoc
45+ asdf install pandoc latest
46+ - name : Install uv
47+ uses : astral-sh/setup-uv@v4
48+ - name : Install just
49+ run : |
50+ uv tool install rust-just
51+ - name : Install dependencies
52+ run : |
53+ uv sync --group docs
4554 - name : Show installed dependencies
46- run : pip freeze
47-
55+ run : |
56+ uv tree
4857 - name : Build docs
4958 run : just docs/html
5059
5160 docs-link :
5261 name : Check Doc Links
5362 runs-on : ubuntu-latest
54- defaults :
55- run :
56- shell : bash -l {0}
5763 steps :
5864 - name : Check out repo
59- uses : actions/checkout@v6
60-
61- - name : Setup docs env same as on RTD
62- uses : mamba-org/setup-micromamba@v2
65+ uses : actions/checkout@v4
66+ - name : Set up Python 3.10
67+ uses : actions/setup-python@v5
6368 with :
64- environment-file : docs/environment.yml
65- cache-environment : true
69+ python-version : " 3.10"
70+ - name : Install asdf package manager
71+ uses : asdf-vm/actions/setup@v4
6672
73+ - name : Install pandoc
74+ run : |
75+ asdf plugin add pandoc
76+ asdf install pandoc latest
77+ - name : Install uv
78+ uses : astral-sh/setup-uv@v4
79+ - name : Install just
80+ run : |
81+ uv tool install rust-just
82+ - name : Install dependencies
83+ run : |
84+ uv sync --group docs
6785 - name : Show installed dependencies
68- run : pip freeze
86+ run : |
87+ uv tree
6988
70- - name : Build docs
89+ - name : Check links in docs
7190 run : just docs/linkcheck
7291
7392 test :
@@ -88,14 +107,15 @@ jobs:
88107 with :
89108 python-version : ${{ matrix.python-version }}
90109
110+ - name : Install uv
111+ uses : astral-sh/setup-uv@v4
112+
91113 - name : Install dependencies
92114 run : |
93- python -m pip install -U pip wheel
94- python -m pip install -r requirements_pinned.txt
95- python -m pip install -U ".[test]"
115+ uv sync --frozen --group test
96116
97117 - name : Run tests
98- run : python -m pytest --nbval --cov=pyglotaran_extras --cov-report term --cov-report xml --cov-config pyproject.toml tests
118+ run : uv run pytest --nbval --cov=pyglotaran_extras --cov-report term --cov-report xml --cov-config pyproject.toml tests
99119
100120 - name : Codecov Upload
101121 continue-on-error : true
@@ -120,18 +140,19 @@ jobs:
120140 with :
121141 python-version : " 3.10"
122142
143+ - name : Install uv
144+ uses : astral-sh/setup-uv@v4
145+
123146 - name : Install dependencies
124147 run : |
125- python -m pip install -U pip wheel
126- python -m pip install -r requirements_pinned.txt
127- python -m pip install -U ".[test]"
128- python -m pip install git+https://github.com/glotaran/pyglotaran
148+ uv sync --frozen --group test
149+ uv add git+https://github.com/glotaran/pyglotaran
129150
130151 - name : Show installed dependencies
131- run : pip freeze
152+ run : uv tree
132153
133154 - name : Run tests
134- run : python -m pytest --nbval --cov=pyglotaran_extras --cov-report term --cov-report xml --cov-config pyproject.toml tests
155+ run : uv run pytest --nbval --cov=pyglotaran_extras --cov-report term --cov-report xml --cov-config pyproject.toml tests
135156
136157 - name : Codecov Upload
137158 continue-on-error : true
@@ -156,17 +177,18 @@ jobs:
156177 with :
157178 python-version : " 3.10"
158179
180+ - name : Install uv
181+ uses : astral-sh/setup-uv@v4
182+
159183 - name : Install dependencies
160184 run : |
161- python -m pip install -U pip wheel
162- python -m pip install -r .github/requirements_min.txt
163- python -m pip install -e ".[test]"
185+ uv sync --group test --resolution lowest
164186
165187 - name : Show installed dependencies
166- run : pip freeze
188+ run : uv tree
167189
168190 - name : Run tests
169- run : python -m pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests
191+ run : uv run pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests
170192
171193 - name : Codecov Upload
172194 continue-on-error : true
@@ -190,12 +212,11 @@ jobs:
190212 uses : actions/setup-python@v6
191213 with :
192214 python-version : " 3.10"
193-
194- - name : Install dependencies
195- run : python -m pip install -U hatch
215+ - name : Install uv
216+ uses : astral-sh/setup-uv@v4
196217
197218 - name : Build dist
198- run : hatch build
219+ run : uv build
199220
200221 - name : Publish package
201222 uses : pypa/gh-action-pypi-publish@v1.13.0
0 commit comments