Skip to content

Commit

Permalink
Merge pull request #325 from simontorres/github_actions_and_new_release
Browse files Browse the repository at this point in the history
Finish setup github actions and prepare new release
  • Loading branch information
Simon Torres authored Sep 24, 2020
2 parents 0d14838 + 3df5e86 commit 02b3f72
Show file tree
Hide file tree
Showing 26 changed files with 91 additions and 1,911 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,6 +28,11 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Adding DCR binaries path
run: |
echo "adding dcr PATH"
export PATH=$PATH:$(pwd)/data/dcr-source/dcr
echo "$PATH"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ __pycache__/*
files.txt
docs/_build/*
goodman_pipeline/data/dcr-source/dcr
goodman_pipeline/data/dcr-source/*.o
goodman_pipeline/data/dcr-source/*.o
/dev-tools/
35 changes: 3 additions & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,19 @@
language: python
python:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9-dev'

branches:
only:
- master

# before_install:
# - ./install_dcr.sh


install:
# - export PATH="$PATH:$HOME/build/soar-telescope/goodman_pipeline/dcrbin"

- sudo apt-get update

# Here we install Anaconda to work with Virtual Environments. We do this
# conditionally because it saves us some downloading if the version is the same.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;


- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no

# Adding AstroConda Channel since it contains most of the dependencies for
# Dragons and Dragons-SOAR
- conda config --add channels http://ssb.stsci.edu/astroconda
- conda update -q conda

# Useful for debugging any issues with conda
- conda info -a
- pip install -r requirements.txt

# Create astroconda virtual environment
- conda env create --force python=$TRAVIS_PYTHON_VERSION -f environment.yml
- source activate goodman_pipeline
- pip freeze
# Run DCR installer
- ./install_dcr.sh
- ./travis_install_dcr.sh

# install
- python setup.py test
Expand All @@ -50,7 +22,6 @@ install:
script:
- pytest
- coverage run --branch --source= setup.py test
# TODO - How can I add the ./goodman as a source?

after_success:
- coveralls
Expand Down
63 changes: 0 additions & 63 deletions dev-tools/ccd-list-based.py

This file was deleted.

Loading

0 comments on commit 02b3f72

Please sign in to comment.