diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 715befad5..697339ebd 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -24,12 +24,10 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive - - name: Install Python 3 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - name: Install dependencies run: | + echo $CONDA/bin >> $GITHUB_PATH + conda install python=3.8 python -m pip install --upgrade pip sudo apt-get install -y libopenblas-dev pip install pytest-cov @@ -40,9 +38,7 @@ jobs: pip install hyperopt pip install -e . - name: Run tests with pytest - run: pytest --cov=scico --cov-report=xml - - name: Run doctests - run: pytest --doctest-modules scico + run: python -c "import astra" - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 with: diff --git a/scico/conftest.py b/conftest.py similarity index 100% rename from scico/conftest.py rename to conftest.py diff --git a/setup.py b/setup.py index 06cc5b05c..19241f1bb 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ import os import os.path +import site from ast import parse from setuptools import find_packages, setup @@ -75,6 +76,8 @@ def get_init_variable_value(var): lines = f.readlines() extras_require[extras_label] = [line.strip() for line in lines if line[0:2] != "-r"] +# PEP517 workaround +site.ENABLE_USER_SITE = True setup( name=name,