-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.4 KB
/
PythonScriptTest.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
name: Python Script Test
on: [push]
jobs:
CreateCuratedRDF:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
max-parallel: 5
steps:
# step 1: checkout the repository
- uses: actions/checkout@v3
# step 2: define Python version to run script with
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
# step 3: run the script in bash
- name: run script in bash
run: |
## Check if python is activated:
which python
## Check version of Python
python3 --version
##Update pip install
pip install --upgrade pip
##Install library to read xlsx files:
pip install openpyxl
ls
python createRDFKinData.py
echo "script run successful"
ValidateCuratedRDF:
runs-on: ubuntu-latest
needs: CreateCuratedRDF
steps:
# step 1: checkout the repository
- uses: actions/checkout@v3
# step 2: Download and run the RDF validator
- name: Turtle Validator
run: |
npm install -g turtle-validator
ttl Output/RDF_Kin_Data_2022-Dec.ttl
if [[ ttl Output/RDF_Kin_Data_2022-Dec.ttl == "Validator finished with 0 warnings and 0 errors." ]]; then
echo "RDF content valid"
else
echo "RDF content NOT valid, please check"
fi