mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
c0011da069
commit
712ee1c4a7
|
@ -1,5 +1,5 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/pytest-dev/pytest/archive/refs/tags/v{{ version }}.tar.gz
|
url: https://github.com/pytest-dev/pytest/archive/refs/tags/{{ version.tag }}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
@ -7,17 +7,23 @@ versions:
|
||||||
strip: /^v/
|
strip: /^v/
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: '>=3.7<3.12'
|
pkgx.sh: ^1
|
||||||
|
|
||||||
build:
|
build:
|
||||||
python-venv.sh {{prefix}}/bin/pytest
|
dependencies:
|
||||||
|
python.org: '>=3.7<3.12'
|
||||||
|
git-scm.org: ^2
|
||||||
|
script:
|
||||||
|
- bkpyvenv stage {{prefix}} {{version}}
|
||||||
|
- ${{prefix}}/venv/bin/pip install .
|
||||||
|
- bkpyvenv seal {{prefix}} pytest
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/pytest
|
- bin/pytest
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
script:
|
||||||
pytest --version
|
- pytest --version
|
||||||
# Must return true to pass test; we check for the failure response afterwards explicitly.
|
# Must return true to pass test; we check for the failure response afterwards explicitly.
|
||||||
pytest >> test.txt || true
|
- pytest >> test.txt || true
|
||||||
cat test.txt | grep "FAILED test_fail.py::test_answer - assert 4 == 5"
|
- cat test.txt | grep "FAILED test_fail.py::test_answer - assert 4 == 5"
|
||||||
|
|
Loading…
Reference in a new issue