From 21c30759e544da8032880acc721c8c986b049192 Mon Sep 17 00:00:00 2001 From: JCGoran Date: Wed, 13 Mar 2024 19:44:02 +0100 Subject: [PATCH] Always `pip install -e` in CI --- .circleci/config.yml | 4 ++-- .github/workflows/run-tests.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bfe82f2..7d5d059 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,8 +34,8 @@ jobs: # This assumes pytest is installed via the install-package step above command: | # we don't need any other dependencies - python3 -m pip install .[test] - python3 -m pytest -k 'not interfaces and not __init__.py' + python3 -m pip -e install .[test] + bash scripts/check_coverage.sh # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e80f4d5..9cebdb6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -29,7 +29,7 @@ jobs: python-version: '3.9' - run: | - python -m pip install .[docs,test,dev] + python -m pip install -e .[docs,test,dev] - run: bash scripts/check_syntax.sh @@ -57,7 +57,7 @@ jobs: python-version: ${{ matrix.python-version }} - run: | - python -m pip install .[test] + python -m pip install -e .[test] - name: Run tests run: bash scripts/check_coverage.sh @@ -90,7 +90,7 @@ jobs: - name: Install project and CLASS run: | - python -m pip install .[test] + python -m pip install -e .[test] python -m pip install Cython git clone --depth 1 --branch feature/conda https://github.com/JCGoran/class_public && cd class_public && make classy && cd - - name: Run CLASS tests @@ -113,7 +113,7 @@ jobs: - name: Install project and COFFE run: | - python -m pip install .[test] + python -m pip install -e .[test] python -m pip install coffe - name: Run COFFE tests @@ -136,7 +136,7 @@ jobs: - name: Install project and CAMB run: | - python -m pip install .[test] + python -m pip install -e .[test] python -m pip install camb - name: Run CAMB tests