File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Generate and serve API data for EESSI
2+ on :
3+ pull_request :
4+ branches :
5+ - main
6+ concurrency :
7+ group : pr-${{ github.event.pull_request.number }}
8+ cancel-in-progress : true
9+ permissions :
10+ contents : read
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v5
16+ - uses : eessi/github-action-eessi@v3
17+ with :
18+ use_eessi_module : true
19+ eessi_stack_version : " 2025.06"
20+ - name : Create a virtualenv to install zensical
21+ run : |
22+ python -m venv /tmp/venv_docs
23+ source /tmp/venv_docs/bin/activate
24+ pip install zensical
25+ - name : Generate API data
26+ run : |
27+ echo "Generating data files..."
28+ module purge
29+ module unuse $MODULEPATH
30+ module use /cvmfs/software.eessi.io/init/modules/
31+ # Only do 2023.06 for EB 5 since this is just a test
32+ ( module load EESSI/2023.06 && module load EasyBuild/5 && module load EESSI-extend && python scripts/generate_data_files.py --eessi-version=2023.06 ) &
33+ # Merge all these results together
34+ wait
35+ python scripts/merge_data_files.py out.yaml eessi*.yaml
36+ mv out.yaml docs/data/eessi_software_metadata.yaml
37+ # Generate json data files and markdown index/description for them
38+ cd docs/data
39+ python ../../scripts/process_eessi_software_metadata.py eessi_software_metadata.yaml eessi_api_metadata
40+ python ../../scripts/calculate_hashes.py
41+ for json_file in *.json; do
42+ python ../../scripts/generate_schema_md.py $json_file >> index.md
43+ done
44+ - run : |
45+ source /tmp/venv_docs/bin/activate
46+ zensical build --clean
You can’t perform that action at this time.
0 commit comments