fix(ci): try to install for pytest from wheel

This commit is contained in:
Anand Balakrishnan 2023-10-05 17:07:34 -07:00
parent 1a4d8cc845
commit cc74411d95
No known key found for this signature in database
2 changed files with 4 additions and 5 deletions

View file

@ -53,7 +53,7 @@ jobs:
if: matrix.target == 'x86_64'
shell: bash -el {0}
run: |
pip install pyargus --find-links dist --force-reinstall
pip install dist/*.whl --force-reinstall
cd pyargus && pytest
windows:
@ -96,7 +96,7 @@ jobs:
- name: Python Tests
shell: pwsh
run: |
pip install pyargus --find-links dist --force-reinstall
pip install dist/*.whl --force-reinstall
cd pyargus && pytest
macos:
@ -139,8 +139,7 @@ jobs:
args: --release --out dist -i ${{ matrix.python-version }} --manifest-path pyargus/Cargo.toml --zig
manylinux: auto
- name: Python Tests
if: matrix.target == 'x86_64'
shell: bash -el {0}
run: |
pip install pyargus --find-links dist --force-reinstall
pip install dist/*.whl --force-reinstall
cd pyargus && pytest

View file

@ -119,7 +119,7 @@ def mypy(session: nox.Session):
def tests(session: nox.Session):
session.conda_install("pytest", "hypothesis")
session.env.update(ENV)
session.install("-e", "./pyargus")
session.install("./pyargus")
try:
session.run(
"cargo", "test", "--workspace", "--exclude", "pyargus", external=True