Skip to content

Commit 5466b97

Browse files
committed
ci: use tox for cirrus builds
Moving to tox to use isolated buids to avoid some environment specific dragons in relation to `poetry install` command. Today, the symlinks will cause issues when poetry attempts to add an editable install into the venv due to a pathlib2 bug.
1 parent 7b3ff58 commit 5466b97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: .cirrus.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ test_task:
1616
- pkg install -y git-lite $PYPACKAGE $SQLPACKAGE
1717
pip_script:
1818
- $PYTHON -m ensurepip
19-
- $PYTHON -m pip install pip -U
20-
- $PYTHON -m pip install poetry -U
21-
- $PYTHON -m poetry config virtualenvs.in-project true
22-
deps_script: $PYTHON -m poetry install
23-
test_script: $PYTHON -m poetry run pytest -q --junitxml=junit.xml tests
19+
- $PYTHON -m pip install -U pip tox poetry
20+
- poetry config virtualenvs.in-project true
21+
tox_script: $PYTHON -m tox -e py -- -q --junitxml=junit.xml tests
2422
on_failure:
2523
annotate_failure_artifacts:
2624
path: junit.xml

0 commit comments

Comments
 (0)