Skip to content

Commit

Permalink
Merge pull request #9 from biolab/automated-release
Browse files Browse the repository at this point in the history
[CI] Workflow for automated release & aif360 version update
  • Loading branch information
ZanMervic authored Mar 19, 2024
2 parents 2f0f450 + 5e4fa4f commit e747503
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/publish.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Release
on:
release:
types: [published]
workflow_dispatch:

jobs:
release:
uses: biolab/orange-ci-cd/.github/workflows/release.yml@master
with:
pure-python: true
secrets: inherit
12 changes: 8 additions & 4 deletions orangecontrib/fairness/widgets/tests/test_owequalizedodds.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def test_model_output(self):

self.assertIsNotNone(model)


def test_compatibility_with_predictions(self):
"""Check that the widget works with the predictions widget"""
test_data = Table(self.data_path_adult)
Expand All @@ -64,9 +63,14 @@ def test_compatibility_with_predictions(self):
self.send_signal(
self.predictions.Inputs.predictors, model, widget=self.predictions
)
predictions = self.get_output(
self.predictions.Outputs.predictions, widget=self.predictions
)
if hasattr(self.predictions.Outputs, "predictions"):
# OWPredictions in Orange3<3.37 has attribute named predictions
attr = self.predictions.Outputs.predictions
else:
# in Orange3>=3.37 predictions is replaced with selected_predictions
attr = self.predictions.Outputs.selected_predictions
predictions = self.get_output(attr, widget=self.predictions)

results = self.get_output(
self.predictions.Outputs.evaluation_results, widget=self.predictions
)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def include_documentation(local_dir, install_dir):
),
},
install_requires=[
"numpy",
"Orange3",
"aif360==0.5.0",
"numpy~=1.23.0"
"aif360>=0.6.0",
],
extras_require={
"doc": [
Expand Down

0 comments on commit e747503

Please sign in to comment.