Skip to content

Commit

Permalink
Finalise load all vocabs test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedgell committed Jul 11, 2023
1 parent e1d4a84 commit 1a818a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/load_all_vocabs_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
pip install -r scripts/requirements.txt
- name: Load all vocabs Test
env:
DB_USERNAME: ${{secrets.DB_USERNAME}}
DB_PASSWORD: ${{secrets.DB_PASSWORD}}
DB_USERNAME: ${{secrets.DB_USERNAME_TEST}}
DB_PASSWORD: ${{secrets.DB_PASSWORD_TEST}}
BASE_DB_URI: ${{vars.BASE_DB_URI_TEST}}
run: |
echo 'Run load script...'
Expand Down
3 changes: 1 addition & 2 deletions scripts/load_all_vocabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

BASE_DB_URI = os.environ.get("BASE_DB_URI", None)
ENDPOINT = f"{BASE_DB_URI}/statements"
print(ENDPOINT)
DB_USERNAME = os.environ.get("DB_USERNAME", None)
DB_PASSWORD = os.environ.get("DB_PASSWORD", None)

# get a list of pathname strings of all the turtle files in the vocabularies folder
voc_strings = glob.glob(str(Path(__file__).parent.parent / "vocabularies") + "/*.ttl")
# print(voc_strings)
print(voc_strings)

# build a list of Path objects using the pathname strings
voc_paths = []
Expand Down

0 comments on commit 1a818a2

Please sign in to comment.