Skip to content

Commit

Permalink
test isolated build
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinnfd committed Jul 14, 2024
1 parent 859170b commit 86ee26c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
run: |
python -m pip install poetry-dynamic-versioning[plugin]
# Install test dependencies (tox) to the root (non-package install)
# - name: Install test dependencies
# run: |
# poetry install --no-root --only test
- name: Install test dependencies
run: |
poetry install --no-root --only test
- name: set full Python version in PY env var
if: ${{ matrix.os != 'windows-latest' }}
# See https://pre-commit.com/#github-actions-example
Expand All @@ -73,10 +73,8 @@ jobs:
node-version: 18.x
- name: Install Yarn
run: npm install -g yarn
- name: Run tox testsa
run: |
pip install tox
tox -e ${{ matrix.tox }}
- name: Run tox tests
run: tox -e ${{ matrix.tox }}

lint_typecheck_test_webui:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
isolated_build = True
skipsdist = True
envlist =
ruff
Expand All @@ -16,7 +17,7 @@ allowlist_externals =
make
commands =
poetry install --with test
python -m unittest discover []
poetry run python -m unittest discover []
; Disable these tests for now, because they are breaking. When someone has time they should be converted into regular unit tests
; bash -ec "PYTHONUNBUFFERED=1 timeout 20s python3 examples/rest.py >{temp_dir}/out.txt 2>/{temp_dir}/err.txt || true"
; grep -qm 1 'my custom error message with response text, response was {"args"' {temp_dir}/out.txt
Expand All @@ -27,7 +28,7 @@ commands =
[testenv:fail_fast_test_main]
commands =
poetry install --with test
python -m unittest -f locust.test.test_main
poetry run python -m unittest -f locust.test.test_main

[testenv:ruff]
; Pin the same version in the .pre-commit-config.yaml file.
Expand Down

0 comments on commit 86ee26c

Please sign in to comment.