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 160379a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,24 @@ 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
conda install -c conda-forge pytest-cov
pip install -r requirements.txt
pip install -r dev_requirements.txt
conda install -c astra-toolbox astra-toolbox
pip install ray[tune]
conda install -c conda-forge pyyaml
pip install "ray[tune]"
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: |
pytest --cov=scico --cov-report=xml
pytest --ignore-glob="*test_*.py" --doctest-modules scico
- 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 160379a

Please sign in to comment.