kopia lustrzana https://github.com/simonw/datasette
Update test.yml
rodzic
e9a5cea702
commit
40d3821a31
|
@ -37,6 +37,7 @@ jobs:
|
||||||
uv pip freeze
|
uv pip freeze
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
pytest -n auto -m "not serial"
|
pytest -n auto -m "not serial"
|
||||||
pytest -m "serial"
|
pytest -m "serial"
|
||||||
# And the test that exceeds a localhost HTTPS server
|
# And the test that exceeds a localhost HTTPS server
|
||||||
|
@ -44,17 +45,21 @@ jobs:
|
||||||
- name: Install docs dependencies on Python 3.9+
|
- name: Install docs dependencies on Python 3.9+
|
||||||
if: matrix.python-version != '3.8'
|
if: matrix.python-version != '3.8'
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
pip install -e '.[docs]'
|
pip install -e '.[docs]'
|
||||||
- name: Check if cog needs to be run
|
- name: Check if cog needs to be run
|
||||||
if: matrix.python-version != '3.8'
|
if: matrix.python-version != '3.8'
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
cog --check docs/*.rst
|
cog --check docs/*.rst
|
||||||
- name: Check if blacken-docs needs to be run
|
- name: Check if blacken-docs needs to be run
|
||||||
if: matrix.python-version != '3.8'
|
if: matrix.python-version != '3.8'
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
# This fails on syntax errors, or a diff was applied
|
# This fails on syntax errors, or a diff was applied
|
||||||
blacken-docs -l 60 docs/*.rst
|
blacken-docs -l 60 docs/*.rst
|
||||||
- name: Test DATASETTE_LOAD_PLUGINS
|
- name: Test DATASETTE_LOAD_PLUGINS
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
pip install datasette-init datasette-json-html
|
pip install datasette-init datasette-json-html
|
||||||
tests/test-datasette-load-plugins.sh
|
tests/test-datasette-load-plugins.sh
|
||||||
|
|
Ładowanie…
Reference in New Issue