Compare commits

...

4 commits

Author SHA1 Message Date
Simon Willison
40d3821a31
Update test.yml 2024-02-15 21:18:37 -08:00
Simon Willison
e9a5cea702
Activate venv 2024-02-15 21:16:53 -08:00
Simon Willison
308a15221b
uv vent 2024-02-15 21:15:32 -08:00
Simon Willison
fbffaddc57
Try uv 2024-02-15 21:11:47 -08:00

View file

@ -30,10 +30,14 @@ jobs:
(cd tests && gcc ext.c -fPIC -shared -o ext.so)
- name: Install dependencies
run: |
pip install -e '.[test]'
pip freeze
pip install uv
uv venv
source .venv/bin/activate
uv pip install -e '.[test]'
uv pip freeze
- name: Run tests
run: |
source .venv/bin/activate
pytest -n auto -m "not serial"
pytest -m "serial"
# And the test that exceeds a localhost HTTPS server
@ -41,17 +45,21 @@ jobs:
- name: Install docs dependencies on Python 3.9+
if: matrix.python-version != '3.8'
run: |
source .venv/bin/activate
pip install -e '.[docs]'
- name: Check if cog needs to be run
if: matrix.python-version != '3.8'
run: |
source .venv/bin/activate
cog --check docs/*.rst
- name: Check if blacken-docs needs to be run
if: matrix.python-version != '3.8'
run: |
source .venv/bin/activate
# This fails on syntax errors, or a diff was applied
blacken-docs -l 60 docs/*.rst
- name: Test DATASETTE_LOAD_PLUGINS
run: |
source .venv/bin/activate
pip install datasette-init datasette-json-html
tests/test-datasette-load-plugins.sh