Skip to content

Commit 7c58176

Browse files
authored
Merge pull request #709 from EESSI/add_back_ldjson
Clean up data generation, add test, include ldjson
2 parents 9db5b99 + c77ad7d commit 7c58176

32 files changed

Lines changed: 3633 additions & 1192 deletions

.github/workflows/script_module_list.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ jobs:
3434
runs-on: ubuntu-22.04
3535
steps:
3636
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
37-
- name: Make EESSI available
38-
uses: eessi/github-action-eessi@v3
39-
- name: Set up Python
40-
uses: eessi/github-action-eessi@v3
41-
with:
42-
python-version: '3.7'
4337
- name: Install dependencies
4438
run: |
4539
python -m venv venv

.github/workflows/test_overview_available_software.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ jobs:
1717
python-version: '3.10'
1818
architecture: x64
1919

20-
- name: Mount EESSI
21-
uses: eessi/github-action-eessi@e1f8f20638ea417a18d23ab29443ee34794ff900 # v3.1.0
22-
with:
23-
eessi_stack_version: '2023.06'
24-
2520
- name: test overview available software
2621
id: test_overview_available_software
2722
run: |
2823
# install required Python packages in virtual environment
2924
python -m venv venv
3025
. venv/bin/activate
31-
pip install -r mkdocs-ldjson-plugin/requirements.txt
3226
pip install -r scripts/available_software/requirements.txt
3327
3428
# download https://eessi.io/api_data/data/eessi_api_metadata_software.json
@@ -42,14 +36,11 @@ jobs:
4236
python scripts/available_software/available_software.py
4337
./scripts/update_generated_time.sh mkdocs.yml
4438
45-
# determine whether pull request should be opened:
39+
# determine whether pull request would need to be opened:
4640
# if detailed software pages in docs/available_software/detail have been updated, then a PR should be opened
4741
if [[ $(git status --porcelain ./docs/available_software/detail) ]]; then
4842
echo "Software pages have been changed, PR should be opened"
4943
git diff ./docs/available_software/detail
5044
else
5145
echo "Software pages have not been changed, no need to open PR"
5246
fi
53-
54-
# remove the data directory containing the original JSON file, or it'll end up in the PR being opened
55-
rm -r ${data_dir}

.github/workflows/update_available_software.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717
python-version: '3.10'
1818
architecture: x64
1919

20-
- name: Mount EESSI
21-
uses: eessi/github-action-eessi@e1f8f20638ea417a18d23ab29443ee34794ff900 # v3.1.0
22-
with:
23-
eessi_stack_version: '2023.06'
24-
2520
- name: update overview of available software
2621
id: update_available_software
2722
run: |
@@ -38,7 +33,6 @@ jobs:
3833
curl -OL https://eessi.io/api_data/data/eessi_api_metadata_software.json
3934
cd -
4035
41-
export TIME_GENERATED_TEMPLATE="{{ generated_time }}"
4236
python scripts/available_software/available_software.py
4337
./scripts/update_generated_time.sh mkdocs.yml
4438
@@ -54,8 +48,8 @@ jobs:
5448
echo "json_data_changed=no" >> $GITHUB_OUTPUT
5549
fi
5650
57-
# remove the data directory containing the original JSON file, or it'll end up in the PR being opened
58-
rm -r ${data_dir}
51+
# remove the JSON file in the data directory, or it'll end up in the PR being opened
52+
rm -r ${data_dir}/*.json
5953
6054
- name: create pull request
6155
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8

docs/available_software/data/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)