Enhance CI/CD readability
Browse files- .github/workflows/ci-cd.yaml +17 -4
.github/workflows/ci-cd.yaml
CHANGED
@@ -50,13 +50,26 @@ jobs:
|
|
50 |
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
|
51 |
|
52 |
load-vocabulary:
|
53 |
-
name: Load vocabularies
|
54 |
if: github.ref == 'refs/heads/master'
|
55 |
needs: cleanup-neo4j
|
56 |
runs-on: ubuntu-latest
|
57 |
strategy:
|
58 |
matrix:
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
steps:
|
61 |
- uses: actions/checkout@v3
|
62 |
with:
|
@@ -65,10 +78,10 @@ jobs:
|
|
65 |
uses: actions/setup-python@v4
|
66 |
with:
|
67 |
python-version: "3.10"
|
68 |
-
- name:
|
69 |
run: |
|
70 |
pip3 install --upgrade --force-reinstall wilhelm-python-sdk
|
71 |
-
python3 ${{ matrix.script }}
|
72 |
env:
|
73 |
NEO4J_URI: ${{ secrets.NEO4J_URI }}
|
74 |
NEO4J_DATABASE: ${{ secrets.NEO4J_DATABASE }}
|
|
|
50 |
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
|
51 |
|
52 |
load-vocabulary:
|
53 |
+
name: Load ${{ matrix.language.name }} vocabularies
|
54 |
if: github.ref == 'refs/heads/master'
|
55 |
needs: cleanup-neo4j
|
56 |
runs-on: ubuntu-latest
|
57 |
strategy:
|
58 |
matrix:
|
59 |
+
language: [
|
60 |
+
{
|
61 |
+
name: German,
|
62 |
+
load-script: .github/load_german.py
|
63 |
+
},
|
64 |
+
{
|
65 |
+
name: Ancient Greek,
|
66 |
+
load-script: .github/load_ancient_greek.py
|
67 |
+
},
|
68 |
+
{
|
69 |
+
name: Latin,
|
70 |
+
load-script: .github/load_latin.py
|
71 |
+
}
|
72 |
+
]
|
73 |
steps:
|
74 |
- uses: actions/checkout@v3
|
75 |
with:
|
|
|
78 |
uses: actions/setup-python@v4
|
79 |
with:
|
80 |
python-version: "3.10"
|
81 |
+
- name: Load ${{ matrix.language.name }}
|
82 |
run: |
|
83 |
pip3 install --upgrade --force-reinstall wilhelm-python-sdk
|
84 |
+
python3 ${{ matrix.language.load-script }}
|
85 |
env:
|
86 |
NEO4J_URI: ${{ secrets.NEO4J_URI }}
|
87 |
NEO4J_DATABASE: ${{ secrets.NEO4J_DATABASE }}
|