Skip to content

Integrating Database of Ab Initio Crystal Structures (DAICS) to Optimade #98

Integrating Database of Ab Initio Crystal Structures (DAICS) to Optimade

Integrating Database of Ab Initio Crystal Structures (DAICS) to Optimade #98

Workflow file for this run

name: OPTIMADE validator
on: [pull_request]
env:
DEPLOY_PREVIEW: "deploy-preview-${{ github.event.number }}--optimade-providers.netlify.app"
jobs:
check_deploy_preview:
name: Check deploy preview is up
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Wait a maximum of 3 min for the preview site to be up
run: .github/workflows/wait_for_it.sh --host="${DEPLOY_PREVIEW}" --port=443 -t 180
validate_provider_list:
name: Provider index meta-db
runs-on: ubuntu-latest
needs:
check_deploy_preview
steps:
- uses: Materials-Consortia/optimade-validator-action@v2
with:
index: yes
protocol: https
domain: ${DEPLOY_PREVIEW}
path: /
validator version: latest
verbosity: 2
validate_local_index_dbs:
name: All local index meta-dbs
runs-on: ubuntu-latest
needs:
check_deploy_preview
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install OPTIMADE
run: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install optimade
- name: Run validator for all local index meta-dbs
run: |
providers=$(find src/index-metadbs/ -maxdepth 1 -mindepth 1 -type d -printf ' %f' | cut -d / -f 3 )
sleep 10
for provider in ${providers[@]}; do
optimade-validator -vv --index https://${DEPLOY_PREVIEW}/index-metadbs/${provider}/v1/
done