Skip to content

Commit

Permalink
Try new tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuabmoore committed Apr 10, 2024
1 parent c2093cd commit e9f5e2a
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 66 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/run_dataset_generation.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
name: Unit Testing Pipeline
# name: Unit Testing Pipeline

on:
push:
# on:
# push:

jobs:
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install octave
run: |
sudo apt-get update
sudo apt-get install -y build-essential octave
- name: Install pyspi dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Run data generation
run: |
python tests/generate_benchmark_tables.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: benchmark-tables
path: tests/CML7_benchmark_tables_new.pkl
# jobs:
# test-ubuntu:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.8"]
# steps:
# - uses: actions/checkout@v4
# - name: Setup python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# cache: 'pip'
# - name: Install octave
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential octave
# - name: Install pyspi dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install .
# - name: Run data generation
# run: |
# python tests/generate_benchmark_tables.py
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: benchmark-tables
# path: tests/CML7_benchmark_tables_new.pkl
#
64 changes: 32 additions & 32 deletions .github/workflows/run_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# name: Unit Testing Pipeline
name: Unit Testing Pipeline

# on:
# push:
on:
push:

# jobs:
# test-ubuntu:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.8", "3.9"]
# steps:
# - uses: actions/checkout@v4
# - name: Setup python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# cache: 'pip'
# - name: Install octave
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential octave
# - name: Install pyspi dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install .
# - name: Run pyspi calculator/utils unit tests
# run: |
# pytest -v ./tests/test_calc.py
# pytest -v ./tests/test_utils.py
# - name: Run pyspi SPI unit tests
# run: |
# pytest -v ./tests/test_SPIs.py
jobs:
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install octave
run: |
sudo apt-get update
sudo apt-get install -y build-essential octave
- name: Install pyspi dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Run pyspi calculator/utils unit tests
run: |
pytest -v ./tests/test_calc.py
pytest -v ./tests/test_utils.py
- name: Run pyspi SPI unit tests
run: |
pytest -v ./tests/test_SPIs.py
Binary file added tests/CML7_benchmark_tables_new.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_SPIs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def load_benchmark_tables():
"""Function to load the mean and standard deviation tables for each MPI."""
table_fname = 'CML7_benchmark_tables.pkl'
table_fname = 'CML7_benchmark_tables_new.pkl'
with open(f"tests/{table_fname}", "rb") as f:
loaded_tables = dill.load(f)

Expand Down

0 comments on commit e9f5e2a

Please sign in to comment.