Skip to content

Commit ac2013d

Browse files
Merge pull request #473 from vemonet/master
Add GitHub Actions workflow
2 parents 34e6a5e + bcd9d44 commit ac2013d

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Run Bio2RDF PHP scripts
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
run-scripts:
11+
runs-on: ubuntu-latest
12+
# runs-on: self-hosted
13+
# https://sanderknape.com/2020/03/self-hosted-github-actions-runner-kubernetes/
14+
# https://github.com/summerwind/actions-runner-controller
15+
# https://github.com/evryfs/github-actions-runner-operator/
16+
17+
strategy:
18+
matrix:
19+
bio2rdf-dataset: ['hgnc', 'sgd']
20+
# bio2rdf-dataset: ['hgnc', 'goa']
21+
# bio2rdf-dataset: ['hgnc', 'clinicaltrials', 'sgd', 'pdb', 'pubmed', 'sabiork', 'affymetrix', 'pubchem', 'pharmgkb', 'lsr', 'drugbank', 'omim', 'mesh', 'interpro', 'ncbigene', 'irefindex', 'sider', 'mgi', 'homologene', 'genbank', 'taxonomy', 'chembl', 'wormbase', 'ctd', 'uniprot', 'dbsnp', 'ndc', 'biomodels', 'genage', 'ipi', 'pathwaycommons', 'biopax', 'refseq', 'bioportal', 'iproclass', 'goa', 'unists']
22+
23+
steps:
24+
- name: Setup PHP with PECL extension
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: '7.4'
28+
ini-values: memory_limit=6144M
29+
# Issue with default PHP 8.0 (4 error handling args instead of 5 expected)
30+
31+
## Setting up the environment
32+
# https://github.com/bio2rdf/bio2rdf-scripts/wiki/Setting-up-the-developer-environment
33+
34+
- uses: actions/checkout@v2
35+
with:
36+
repository: 'micheldumontier/php-lib'
37+
path: 'php-lib'
38+
39+
- uses: actions/checkout@v2
40+
with:
41+
path: 'bio2rdf-scripts'
42+
43+
- name: Create data folders
44+
working-directory: ./bio2rdf-scripts
45+
run: |
46+
mkdir -p data/download
47+
mkdir -p data/rdf
48+
49+
## Run the Bio2RDF PHP parsers
50+
# https://github.com/bio2rdf/bio2rdf-scripts/wiki/Run-the-Bio2RDF-parsers
51+
52+
- name: Run ${{ matrix.bio2rdf-dataset }} parser
53+
working-directory: ./bio2rdf-scripts
54+
env:
55+
APIKEY: ${{ secrets.APIKEY }}
56+
run: |
57+
php runparser.php parser=${{ matrix.bio2rdf-dataset }} download=true files=all indir=data/download/${{ matrix.bio2rdf-dataset }}/ outdir=data/rdf/${{ matrix.bio2rdf-dataset }}/ registry_dir=registry
58+
59+
60+
- name: Upload output RDF data
61+
uses: actions/upload-artifact@v1
62+
with:
63+
name: ${{ matrix.bio2rdf-dataset }}-bio2rdf-output
64+
path: bio2rdf-scripts/data
65+
66+
67+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ linkedSPLs/LinkedSPLs-update/data/
1818
linkedSPLs/LinkedSPLs-update/load-dailymed-spls/problematic-spls/
1919
linkedSPLs/LinkedSPLs-update/mappings/FDA-pharmacogenetic-info-mapping/cached-table-downloads/
2020
linkedSPLs/LinkedSPLs-update/mappings/PT-UNII-ChEBI-mapping/ChEBIJavaClient/bin/
21+
22+
data/

.gitmodules

Whitespace-only changes.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
[![Run Bio2RDF PHP scripts](https://github.com/vemonet/bio2rdf-scripts/workflows/Run%20Bio2RDF%20PHP%20scripts/badge.svg)](https://github.com/vemonet/bio2rdf-scripts/actions?query=workflow%3A%22Run+Bio2RDF+PHP+scripts%22)
2+
13
Bio2RDF-scripts
24
===============
5+
36
This Git repository holds all of the RDF converter scripts used to generate Bio2RDF linked data.
47

58
Requirements
69
-------------
10+
711
See the [wiki](https://github.com/bio2rdf/bio2rdf-scripts/wiki) for details.
812

913
---

0 commit comments

Comments
 (0)