QubitPi commited on
Commit
5a2a8c2
1 Parent(s): c3511c2

Add loading test in CI/CD (#6)

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-cd.yaml +45 -1
.github/workflows/ci-cd.yaml CHANGED
@@ -27,9 +27,53 @@ jobs:
27
  use-custom-yamllint-config-file: true
28
  use-custom-markdownlint-config-file: true
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  cleanup-neo4j:
31
  if: github.ref == 'refs/heads/master'
32
- needs: yml-md-style-and-link-checks
33
  runs-on: ubuntu-latest
34
  steps:
35
  - uses: actions/checkout@v3
 
27
  use-custom-yamllint-config-file: true
28
  use-custom-markdownlint-config-file: true
29
 
30
+ tests:
31
+ needs: yml-md-style-and-link-checks
32
+ runs-on: ubuntu-latest
33
+ strategy:
34
+ fail-fast: false
35
+ matrix:
36
+ language: [
37
+ {
38
+ name: German,
39
+ load-script: .github/load_german.py
40
+ },
41
+ {
42
+ name: Ancient Greek,
43
+ load-script: .github/load_ancient_greek.py
44
+ },
45
+ {
46
+ name: Latin,
47
+ load-script: .github/load_latin.py
48
+ }
49
+ ]
50
+ steps:
51
+ - uses: actions/checkout@v3
52
+ with:
53
+ fetch-depth: 0
54
+ - name: Set up Python 3.10
55
+ uses: actions/setup-python@v4
56
+ with:
57
+ python-version: "3.10"
58
+ - name: Startup a Neo4J database
59
+ run: docker run --publish=7474:7474 --publish=7687:7687 --env=NEO4J_AUTH=none neo4j &
60
+ - name: Wait for database to be ready
61
+ uses: iFaxity/wait-on-action@v1
62
+ with:
63
+ resource: http://localhost:7474
64
+ - name: Test loading ${{ matrix.language.name }}
65
+ run: |
66
+ pip3 install --upgrade --force-reinstall wilhelm-python-sdk
67
+ python3 ${{ matrix.language.load-script }}
68
+ env:
69
+ NEO4J_URI: neo4j://localhost:7687
70
+ NEO4J_DATABASE: neo4j
71
+ NEO4J_USERNAME: not used
72
+ NEO4J_PASSWORD: not used
73
+
74
  cleanup-neo4j:
75
  if: github.ref == 'refs/heads/master'
76
+ needs: tests
77
  runs-on: ubuntu-latest
78
  steps:
79
  - uses: actions/checkout@v3