Skip to content

Commit

Permalink
Generate new dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuabmoore committed Apr 10, 2024
1 parent 539549c commit fb6b619
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 68 deletions.
67 changes: 33 additions & 34 deletions .github/workflows/run_dataset_generation.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +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"]
# 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.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 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
65 changes: 32 additions & 33 deletions .github/workflows/run_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
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 removed tests/CML7_benchmark_tables.pkl
Binary file not shown.
Binary file removed tests/CML7_benchmark_tables_new.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/generate_benchmark_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_benchmark_tables(calc_list):
# create list to store the calculator objects
store_calcs = list()

for i in range(3):
for i in range(75):
np.random.seed(42)
calc = Calculator(dataset=dataset)
calc.compute()
Expand Down

0 comments on commit fb6b619

Please sign in to comment.