Skip to content

Commit

Permalink
Add more installations.
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Oct 12, 2024
1 parent e4704b9 commit 5aeee34
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/install_ai.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test All Installations
name: Test AI Installations

on: [push, pull_request]

Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/install_es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test ES Installations

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"] # Matrix with different Python versions
steps:
# Step 1: Check out the repository
- name: Check out code
uses: actions/checkout@v3

# Step 2: Set up Miniconda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: test_env

# Step 3: Run all installation scripts for each Python version
- name: Run installation scripts
shell: bash -l {0}
run: |
for script in jarvis_leaderboard/installations/ES/*.sh; do
# Extract script name to use as the environment name (without extension)
env_name=$(basename "$script" .sh)-${{ matrix.python-version }}
echo "Creating Conda environment: $env_name with Python ${{ matrix.python-version }}"
conda create -n "$env_name" python=${{ matrix.python-version }} -y
echo "Activating environment: $env_name"
conda activate "$env_name"
echo "Running $script"
chmod +x "$script"
bash "$script" || { echo "Error: $script failed"; exit 1; }
echo "Deactivating environment: $env_name"
conda deactivate
echo "Removing environment: $env_name"
conda env remove -n "$env_name" -y
done
42 changes: 42 additions & 0 deletions .github/workflows/install_ff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test FF Installations

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"] # Matrix with different Python versions
steps:
# Step 1: Check out the repository
- name: Check out code
uses: actions/checkout@v3

# Step 2: Set up Miniconda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: test_env

# Step 3: Run all installation scripts for each Python version
- name: Run installation scripts
shell: bash -l {0}
run: |
for script in jarvis_leaderboard/installations/FF/*.sh; do
# Extract script name to use as the environment name (without extension)
env_name=$(basename "$script" .sh)-${{ matrix.python-version }}
echo "Creating Conda environment: $env_name with Python ${{ matrix.python-version }}"
conda create -n "$env_name" python=${{ matrix.python-version }} -y
echo "Activating environment: $env_name"
conda activate "$env_name"
echo "Running $script"
chmod +x "$script"
bash "$script" || { echo "Error: $script failed"; exit 1; }
echo "Deactivating environment: $env_name"
conda deactivate
echo "Removing environment: $env_name"
conda env remove -n "$env_name" -y
done
42 changes: 42 additions & 0 deletions .github/workflows/install_qc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test QC Installations

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"] # Matrix with different Python versions
steps:
# Step 1: Check out the repository
- name: Check out code
uses: actions/checkout@v3

# Step 2: Set up Miniconda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: test_env

# Step 3: Run all installation scripts for each Python version
- name: Run installation scripts
shell: bash -l {0}
run: |
for script in jarvis_leaderboard/installations/QC/*.sh; do
# Extract script name to use as the environment name (without extension)
env_name=$(basename "$script" .sh)-${{ matrix.python-version }}
echo "Creating Conda environment: $env_name with Python ${{ matrix.python-version }}"
conda create -n "$env_name" python=${{ matrix.python-version }} -y
echo "Activating environment: $env_name"
conda activate "$env_name"
echo "Running $script"
chmod +x "$script"
bash "$script" || { echo "Error: $script failed"; exit 1; }
echo "Deactivating environment: $env_name"
conda deactivate
echo "Removing environment: $env_name"
conda env remove -n "$env_name" -y
done
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
![Leaderboard actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/test_build.yml/badge.svg)
![Leaderboard installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ai.yml/badge.svg)
![Leaderboard AI installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ai.yml/badge.svg)
![Leaderboard ES installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_es.yml/badge.svg)
![Leaderboard FF installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ff.yml/badge.svg)
![Leaderboard QC installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_qc.yml/badge.svg)
![GitHub repo size](https://img.shields.io/github/repo-size/usnistgov/jarvis_leaderboard)
[![name](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/Analyzing_data_in_the_JARVIS_Leaderboard.ipynb)
[![Downloads](https://pepy.tech/badge/jarvis_leaderboard)](https://pepy.tech/project/jarvis_leaderboard)
Expand Down
5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ In addition to prediction results, we aim to capture the underlying software, ha
As a minimum check, we test rebuilding of the leaderboard and installations of software using GitHub actions.

![Leaderboard actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/test_build.yml/badge.svg)
![Leaderboard installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ai.yml/badge.svg)
![Leaderboard AI installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ai.yml/badge.svg)
![Leaderboard ES installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_es.yml/badge.svg)
![Leaderboard FF installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_ff.yml/badge.svg)
![Leaderboard QC installation actions](https://github.com/usnistgov/jarvis_leaderboard/actions/workflows/install_qc.yml/badge.svg)


<!--number_of_benchmarks--> - Number of benchmarks: 296
Expand Down
2 changes: 1 addition & 1 deletion jarvis_leaderboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Version number."""
__version__ = "2024.7.26"
__version__ = "2024.10.10"
2 changes: 2 additions & 0 deletions jarvis_leaderboard/installations/QC/qiskit_linux_pip_colab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pip install jarvis-tools==2021.7.10 qiskit-terra==0.18.0 qiskit-aer==0.8.2 numpy==1.19.5 matplotlib==3.2.2 requests==2.23.0 scipy==1.4.1 joblib==1.0.1 tqdm==4.41.1 toolz==0.11.1 xmltodict==0.12.0 qiskit-terra==0.18.0 qiskit-aer==0.8.2 qiskit-ibmq-provider==0.15.0 qiskit-ignis==0.6.0 qiskit-aqua==0.9.4
# Example: https://colab.research.google.com/github/knc6/jarvis-tools-notebooks/blob/master/jarvis-tools-notebooks/JARVIS_LAMMPS_tutorial.ipynb
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="jarvis_leaderboard", # Replace with your own username
version="2024.7.26",
version="2024.10.10",
author="Kamal Choudhary",
author_email="[email protected]",
description="jarvis_leaderboard",
Expand Down

0 comments on commit 5aeee34

Please sign in to comment.