-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (58 loc) · 2.13 KB
/
pr.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
59
60
61
62
63
64
65
66
67
name: Test Atlas perl modules
on: [pull_request]
jobs:
setup:
name: ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Checkout config repo
uses: actions/checkout@v2
with:
repository: ebi-gene-expression-group/metadata-validation-config
path: config
- name: Add workspace to path
run: |
echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
echo "${GITHUB_WORKSPACE}/tests" >> $GITHUB_PATH
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{hashFiles('test-environment.yml') }}
# We use conda to install magetab-curation-scripts, which will also
# install perl-atlas-modules and grab all the dependencies for us. Then
# we just copy the perl modules and supporting files to overwrite the
# installed ones for testing of the current codebase.
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
environment-file: test-environment.yml
python-version: 3.6
channels: conda-forge,bioconda,defaults,ebi-gene-expression-group
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
use-only-tar-bz2: true
- shell: bash -l {0}
run: |
rm -rf ${CONDA_PREFIX}/atlasprod/perl_modules
cp -r perl_modules ${CONDA_PREFIX}/atlasprod
rm -rf ${CONDA_PREFIX}/atlasprod/supporting_files
cp -r supporting_files ${CONDA_PREFIX}/atlasprod
- name: Run tests
env:
FASTQ_FILE_REPORT: 'http://ftp.ebi.ac.uk/pub/databases/ena/report/fastqFileReport.gz'
run: |
run-tests.sh