From 4bb2bf9f5093bb9dc2fccb70172590d185a7a135 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Sun, 7 Apr 2024 22:23:34 +0200 Subject: [PATCH] install testing dependencies after build --- .github/workflows/branchbuild.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/branchbuild.yml b/.github/workflows/branchbuild.yml index ef8d21a7..aa5f0545 100644 --- a/.github/workflows/branchbuild.yml +++ b/.github/workflows/branchbuild.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest hypothesis pandas Cython==3.0.10 + pip install Cython==3.0.10 - name: Generate cython run: | @@ -33,6 +33,10 @@ jobs: # test whether tarball contains all files required for compiling pip install dist/rapidfuzz-*.tar.gz -v + - name: Install testing dependencies + run: | + pip install pytest hypothesis pandas + - name: Test with pytest run: | pytest tests @@ -64,15 +68,15 @@ jobs: cmake --build . sudo cmake --build . --target install - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pytest hypothesis pandas - - name: build run: | pip install . -v + - name: Install testing dependencies + run: | + python -m pip install --upgrade pip + pip install pytest hypothesis pandas + - name: Test with pytest run: | pytest tests @@ -104,15 +108,15 @@ jobs: cmake --build . sudo cmake --build . --target install - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pytest hypothesis pandas - - name: build run: | pip install . -v + - name: Install testing dependencies + run: | + python -m pip install --upgrade pip + pip install pytest hypothesis pandas + - name: Test with pytest run: | pytest tests