Skip to content

Commit a2ad6d8

Browse files
committed
ci: run tests with pret@main dependency
1 parent af43d44 commit a2ad6d8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ jobs:
7575
- name: 'Install project'
7676
run: |
7777
yarn install
78-
uv pip install -e . --group dev
78+
if [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.ref }}" = "refs/heads/main" ] || [ "${{ github.ref }}" = "refs/heads/master" ]; then
79+
uv pip install -e . --group dev --group unreleased-deps
80+
else
81+
uv pip install -e . --group dev
82+
fi
7983
8084
- name: 'Install Playwright Browsers'
8185
run: yarn playwright install --with-deps
@@ -203,7 +207,11 @@ jobs:
203207
run: |
204208
yarn install
205209
# install setuptools < 81 to fix issue with pkg_resources
206-
uv pip install -e . --group docs "setuptools<81"
210+
if [ "${{ github.event_name }}" = "pull_request" ] || [ "${{ github.ref }}" = "refs/heads/main" ] || [ "${{ github.ref }}" = "refs/heads/master" ]; then
211+
uv pip install -e . --group docs --group unreleased-deps "setuptools<81"
212+
else
213+
uv pip install -e . --group docs "setuptools<81"
214+
fi
207215
208216
- name: 'Build docs'
209217
run: |

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ docs = [
5757
'click<=8.2.1; python_version >= "3.9"',
5858
{ include-group = "dev" },
5959
]
60+
unreleased-deps = [
61+
"pret @ git+https://github.com/percevalw/pret.git@main",
62+
]
6063

6164
# ----- CLI configuration -----
6265
[project.scripts]

0 commit comments

Comments
 (0)