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, )