From cc74411d9565ceabadcc230656c3438a604d7b2b Mon Sep 17 00:00:00 2001 From: Anand Balakrishnan Date: Thu, 5 Oct 2023 17:07:34 -0700 Subject: [PATCH] fix(ci): try to install for pytest from wheel --- .github/workflows/ci.yaml | 7 +++---- noxfile.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a9d0db9..811c0c3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/noxfile.py b/noxfile.py index 5a93231..b5e34d2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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