-
Notifications
You must be signed in to change notification settings - Fork 85
86 lines (82 loc) · 2.6 KB
/
python-apollo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Python-Apollo
on: ["push", "pull_request"]
jobs:
test-python-apollo:
name: test-python-apollo
runs-on: ubuntu-20.04
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-config.groovy 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-