Skip to content

Commit

Permalink
update test and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wenh06 committed Jul 21, 2024
1 parent ba59b1f commit 948a626
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
python setup.py install_egg_info
pip install -e .[dev]
pip install jupyter 'ipykernel<5.0.0' 'ipython<7.0.0'
pip list
- name: Setup TeX Live
# This is used to render the tikz plots, algorithm2e, etc.
uses: teatimeguest/setup-texlive-action@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip list
- name: Build
run: |
python setup.py sdist bdist_wheel
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/random-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
python setup.py install_egg_info # Workaround https://github.com/pypa/pip/issues/4537
python -m pip install -e .[dev]
python -m pip freeze
pip list
- name: Create artifacts directory if not exists
run: |
mkdir -p $ARTIFACTS_DIR
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
python setup.py install_egg_info # Workaround https://github.com/pypa/pip/issues/4537
python -m pip install -e .[dev]
python -m pip freeze
pip list
- name: Run test with pytest and collect coverage
run: |
pytest --cov=diff_binom_confint --ignore=test/test_random.py -v test
Expand Down
4 changes: 2 additions & 2 deletions test/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_random():
df_err = pd.DataFrame(err_quadruples, columns=["n_total", "n_positive", "method", "error"])
df_err.to_csv(os.path.join(artifact_dir, "bci_random_data_errors.csv"), index=False)
elif len(err_quadruples) > 0:
raise ValueError(f"Errors occurred: {err_quadruples}")
raise ValueError(f"ConfInt Errors occurred: {err_quadruples}")


def test_dbci_random():
Expand Down Expand Up @@ -89,4 +89,4 @@ def test_dbci_random():
)
df_errors.to_csv(os.path.join(artifact_dir, "dbci_random_data_errors.csv"), index=False)
elif len(errors) > 0:
raise ValueError(f"Errors occurred: {errors}")
raise ValueError(f"DiffConfInt Errors occurred: {errors}")

0 comments on commit 948a626

Please sign in to comment.