-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fixes #2659 once fully implemented * in theory everything should work, but unable to test locally * added caching and a longer sleep cycle * building on push only * exposing cache and putting in another sleep after launching apollo * fixed bad directory defintion * installing arrow correctly hopefully * fixed linting error * fixed bad call * setting arrow commands * getting a timer * need to copy in newer apollo-config.groovy * pushing final version
- Loading branch information
1 parent
9b83437
commit 0afb683
Showing
2 changed files
with
93 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Python-Apollo | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
test-python-apollo: | ||
name: test-python-apollo | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8.7] | ||
steps: | ||
- name: Checkout Apollo | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Run Apollo | ||
run: | | ||
cp test/config/python-apollo.travis apollo-config.groovy | ||
date | ||
./grailsw run-app & | ||
echo "Sleeping here while Apollo builds" | ||
sleep 240 | ||
echo "Done sleeping, I hope it is working" | ||
curl -i 'http://localhost:8080/apollo/annotator/system' | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Checkout Pypi | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: galaxy-genome-annotation/python-apollo | ||
path: python-apollo | ||
ref: master | ||
- name: Python install | ||
run: | | ||
pwd | ||
cd python-apollo | ||
pip install -U pip setuptools nose apollo | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Bootstrap | ||
run: | | ||
pwd | ||
echo "Testing if awake" | ||
curl -i 'http://localhost:8080/apollo/annotator/system' | ||
cd python-apollo | ||
pwd | ||
export ARROW_GLOBAL_CONFIG_PATH=`pwd`/test-data/local-apollo2-arrow.yml | ||
echo "Testing arrow command" | ||
arrow users get_users | ||
echo $ARROW_GLOBAL_CONFIG_PATH | ||
ls $ARROW_GLOBAL_CONFIG_PATH | ||
cat $ARROW_GLOBAL_CONFIG_PATH | ||
./bootstrap_apollo.sh --nodocker | ||
- name: Run tests | ||
run: | | ||
pwd | ||
cd python-apollo | ||
pwd | ||
export ARROW_GLOBAL_CONFIG_PATH=`pwd`/test-data/local-apollo2-arrow.yml | ||
python setup.py nosetests | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters