From 39520900f2da25280b66162123fff2643260d6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Alonso=20=C3=81lvarez?= Date: Wed, 15 Nov 2023 08:03:10 +0000 Subject: [PATCH] Fix failing CI --- .github/workflows/ci.yml | 4 +++- tests/test_example_files.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2666f5f9..b7b71cfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,9 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install and build - run: python -m pip install -r requirements-dev.txt + run: | + python -m pip install -r requirements-dev.txt + python -m pip install . - name: Run tests run: python -m pytest diff --git a/tests/test_example_files.py b/tests/test_example_files.py index f29c65b3..752e225a 100644 --- a/tests/test_example_files.py +++ b/tests/test_example_files.py @@ -11,7 +11,7 @@ def collect_examples() -> list[Path]: @mark.parametrize("example", collect_examples()) def test_examples(example: Path, tmp_path: Path) -> None: result = subprocess.run( - ["python", "-m", "wsimod", str(example), "-o", str(tmp_path)], + ["wsimod", str(example), "-o", str(tmp_path)], shell=True, check=True, )