Skip to content

Commit

Permalink
Try to get astra install working in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-T-McCann committed Mar 10, 2022
1 parent 34d90fc commit 8e639e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import os.path
import site
from ast import parse

from setuptools import find_packages, setup
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8e639e8

Please sign in to comment.