-
Notifications
You must be signed in to change notification settings - Fork 50
58 lines (58 loc) · 1.91 KB
/
galaxy_framework.yaml
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
name: Framework tests
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
galaxy-branch: ['dev', 'master']
metadata-strategy: ['directory']
include:
- python-version: '3.7'
galaxy-branch: 'dev'
metadata-strategy: 'extended'
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
with:
path: 'pulsar'
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: galaxyproject/galaxy
ref: ${{ matrix.galaxy-branch }}
path: galaxy
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build Pulsar wheel and replace Galaxy's requirements.
run: python tools/replace_galaxy_requirements_for_ci.py
working-directory: 'pulsar'
- name: Cache pip dir
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy/requirements.txt') }}
- name: Run tests
run: ./run_tests.sh --framework
working-directory: 'galaxy'
env:
GALAXY_TEST_JOB_CONFIG_FILE: ../pulsar/test_data/test_job_conf.yaml
GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY: ${{ matrix.metadata-strategy }}
continue-on-error: ${{ matrix.galaxy-branch == 'master' }}
- uses: actions/upload-artifact@v2
with:
name: Framework test results (${{ matrix.python-version }})
path: 'galaxy/run_framework_tests.html'