-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.68 KB
/
nightly_build.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
name: Nightly Build
on:
schedule:
- cron: "59 23 * * *"
workflow_dispatch:
permissions: write-all
jobs:
build-and-publish:
name: Nightly Report Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
- name: Get robot.jar
run: |
wget https://github.com/ontodev/robot/releases/download/v1.9.5/robot.jar -O robot/robot.jar
chmod +x robot/robot.jar
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Project Dependencies
run: |
pip install -r requirements.txt
- name: Templates generation
run: |
PYTHONPATH=./src:$PYTHONPATH python src/cl_coverage.py
- name: Ontology generation
run: |
cd robot
java -jar robot.jar --prefixes template_prefixes.json template --template ../templates/cellxgene_subset.tsv --output ../cellxgene_subset.owl
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Nightly build"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}