Skip to content

Commit

Permalink
Actionable active actions acting actively (#874)
Browse files Browse the repository at this point in the history
* give actions another try

* wrong docs?

* ok

* hmm

* WTF

* ah, we CAN give a path

* hmm

* actions everywhere

* foo

* artifacts
  • Loading branch information
dpryan79 authored Sep 18, 2019
1 parent f0baf64 commit 07a821b
Showing 1 changed file with 12 additions and 52 deletions.
64 changes: 12 additions & 52 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup conda
run: |
curl https://repo.anaconda.com/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
- name: create env
run: |
export PATH=$HOME/miniconda/bin:$PATH
conda create -n foo -q --yes -c conda-forge -c bioconda python=3.7 numpy scipy matplotlib==3.1.1 nose flake8 plotly pysam pyBigWig py2bit deeptoolsintervals
- name: install deeptools
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
python -m pip install . --no-deps --ignore-installed -vvv
- uses: "dpryan79/github-actions/@master"
- name: PEP8
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
flake8 . --exclude=.venv,.build,build --ignore=E501,F403,E402,F999,F405,E722,W504,W605
- name: Test deepTools
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
nosetests --with-doctest -sv deeptools
- name: make an artifact
run: |
source activate foo
rm -f dist/*
python setup.py sdist
- uses: actions/upload-artifact@master
with:
name: "Dist files"
path: "dist"
build-osx:
name: Test on OSX
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Setup conda
run: |
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-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
- name: create env
run: |
export PATH=$HOME/miniconda/bin:$PATH
conda create -n foo -q --yes -c conda-forge -c bioconda python=3.7 numpy scipy matplotlib==3.1.1 nose flake8 plotly pysam pyBigWig py2bit deeptoolsintervals
- name: install deeptools
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
python -m pip install . --no-deps --ignore-installed -vvv
- uses: "dpryan79/github-actions/@master"
- name: Test deepTools
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
nosetests --with-doctest -sv deeptools
planemo:
Expand All @@ -67,24 +43,8 @@ jobs:
chunk: [1, 2, 3]
steps:
- uses: actions/checkout@v1
- name: Setup conda
run: |
curl https://repo.anaconda.com/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
- name: create env
run: |
export PATH=$HOME/miniconda/bin:$PATH
conda create -n foo -q --yes -c conda-forge -c bioconda python=3.7 numpy scipy matplotlib==3.1.1 nose flake8 plotly pysam pyBigWig py2bit deeptoolsintervals planemo samtools
- name: install deeptools
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
python -m pip install . --no-deps --ignore-installed -vvv
- uses: "dpryan79/github-actions/@master"
- name: planemo
run: |
export PATH=$HOME/miniconda/bin:$PATH
source activate foo
./.planemo.sh ${{ matrix.chunk }}

0 comments on commit 07a821b

Please sign in to comment.