Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add of Online Hierarchical Clustering #1218

Open
wants to merge 361 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
361 commits
Select commit Hold shift + click to select a range
bef5f29
Simplify comments.
hoanganhngo610 Sep 11, 2023
fd3f9b9
Modify __str__ printed output by adding "Printed Hierarchical Cluster…
hoanganhngo610 Sep 11, 2023
05f9cf4
Rename predict_otd.
hoanganhngo610 Sep 11, 2023
d8da76b
Split comments and rename printTree to print_tree.
hoanganhngo610 Sep 11, 2023
98eee88
Modify self.X to self.x_clusters.
hoanganhngo610 Sep 11, 2023
d3d9398
Lexical changes.
hoanganhngo610 Sep 11, 2023
f5cebe7
Remove unnecessary comments.
hoanganhngo610 Sep 11, 2023
0539046
Support pandas v2 (#1321)
MaxHalford Sep 12, 2023
9ef224d
Refactor Docstring
hoanganhngo610 Sep 12, 2023
aa597da
Refactor comment.
hoanganhngo610 Sep 12, 2023
66927cd
Make find_path() a static method.
hoanganhngo610 Sep 13, 2023
87cf7fd
Refactor Docstring.
hoanganhngo610 Sep 13, 2023
d12f243
Make print_tree static method.
hoanganhngo610 Sep 13, 2023
43884f0
Refactor code to account for failing tests.
hoanganhngo610 Sep 13, 2023
2a80d3c
Refactor distance function used in Hierarchical Clustering class.
hoanganhngo610 Sep 13, 2023
74055db
Delete euclidean_distance function (due to being unnecessary).
hoanganhngo610 Sep 13, 2023
c356828
Code refactoring to align with other algorithms available in River.
hoanganhngo610 Sep 13, 2023
851b710
Modify Docstring description for dist_func.
hoanganhngo610 Sep 13, 2023
14a09af
Delete least common ancestor finding function (since this function is…
hoanganhngo610 Sep 14, 2023
487341b
Simplify Adaptive Random Forest (#1323)
smastelini Sep 19, 2023
2df17f1
remove pytest from gaussian.py
MaxHalford Oct 2, 2023
ce6fbc3
Update test_gaussian.py
MaxHalford Oct 2, 2023
46814cd
added web traffic dataset and info (#1326)
jacowp357 Oct 3, 2023
7956876
tidy up WebTraffic
MaxHalford Oct 3, 2023
4b949c6
solve identical samples issue in lof
MaxHalford Oct 3, 2023
d7bd65d
Update delete-caches.yml
MaxHalford Oct 3, 2023
1a32e0d
Add _from_state methods to MultivariateGaussian and EmpiricalCovarian…
MarekWadinger Oct 3, 2023
7a5709d
expand ADWIN docs (#1334)
smastelini Oct 4, 2023
6111c48
Expand tree.ExtremelyFastDecisionTree documentation
smastelini Oct 4, 2023
a6e57f1
pre-commit actions
Oct 4, 2023
089e570
update installation notes
MaxHalford Oct 5, 2023
4c7d3d9
Benchmarks revamp (#1335)
smastelini Oct 6, 2023
7468665
update benchmark files
Oct 6, 2023
f27e7cb
DBSTREAM fix (related to issue #1324) (#1336)
hoanganhngo610 Oct 9, 2023
3a78523
FIX: LOF with QuantileFilter raises IndexError (#1330)
MarekWadinger Oct 10, 2023
23143c6
Fixes #1248 (#1337)
smastelini Oct 11, 2023
0a0d9ed
DBSTREAM: fix density graph timestamps (#1338)
donny741 Oct 14, 2023
bfb4ea6
DBSTREAM: fix microcluster labeling (#1339)
donny741 Oct 14, 2023
424cc38
dbstream: fix adjacency matrix building (#1340)
donny741 Oct 15, 2023
4fc1575
Split events into timestamps and datum (#1345)
MaxHalford Oct 21, 2023
1b07a7c
Remove dict2numpy and numpy2dict (#1344)
MaxHalford Oct 21, 2023
c735492
fix test
MaxHalford Oct 21, 2023
ba5b19d
Fix bug in EFDT (#1347)
smastelini Oct 24, 2023
8a7cae7
Add the NoDrift dummy drift detector (#1350)
smastelini Oct 27, 2023
b72077d
add yield_predictions to iter_progressive_val_score
MaxHalford Oct 30, 2023
c4afffc
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Oct 30, 2023
b9f7366
Update progressive_validation.py
MaxHalford Oct 30, 2023
0e87b80
Implementation of the incremental Kolmogorov-Smirnov Statistics (#1354)
hoanganhngo610 Oct 30, 2023
3d0d6b4
tidy ks
MaxHalford Nov 1, 2023
bc1b7cb
Implementation of the StandardAbsoluteDeviation (SAD) anomaly detecti…
hoanganhngo610 Nov 2, 2023
f514ad0
Use Poetry (#1346)
MaxHalford Nov 2, 2023
e6bf46a
merge
MaxHalford Nov 2, 2023
49daad3
Bump werkzeug from 3.0.0 to 3.0.1 (#1438)
dependabot[bot] Nov 2, 2023
869c33e
Update README.md
MaxHalford Nov 2, 2023
3adc83a
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Nov 2, 2023
cc8ee1b
ellipsis
MaxHalford Nov 2, 2023
7a61af9
mmm
MaxHalford Nov 2, 2023
4256435
Update README.md
MaxHalford Nov 2, 2023
738687c
Update README.md
MaxHalford Nov 3, 2023
c154716
add ipykernel
MaxHalford Nov 8, 2023
3f5ee1c
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Nov 8, 2023
6e29611
Make confusion matrix work with evaluate module (#1444)
MaxHalford Nov 8, 2023
c51e79b
bump to 0.20
MaxHalford Nov 9, 2023
69b6085
fix
MaxHalford Nov 9, 2023
8286e70
Update release-docs.yml
MaxHalford Nov 9, 2023
79427a2
Update pypi.yml
MaxHalford Nov 9, 2023
17c0762
Update release-docs.yml
MaxHalford Nov 9, 2023
9cadfb6
wip
MaxHalford Nov 9, 2023
9f65d1c
Update release-docs.yml
MaxHalford Nov 9, 2023
958fdad
update poetry
MaxHalford Nov 9, 2023
1d98c07
Update pypi.yml
MaxHalford Nov 9, 2023
ebc20a9
Update Makefile
MaxHalford Nov 9, 2023
5eafef3
add jupyter
MaxHalford Nov 9, 2023
fc4bafb
Update release-docs.yml
MaxHalford Nov 9, 2023
4c72b02
upgrade cibuildwheel
MaxHalford Nov 9, 2023
338ba01
Update release-docs.yml
MaxHalford Nov 9, 2023
168617f
wip
MaxHalford Nov 9, 2023
266d0cd
Update pypi.yml
MaxHalford Nov 9, 2023
358b959
Update release-docs.yml
MaxHalford Nov 9, 2023
ab7c53d
0.20.1
MaxHalford Nov 9, 2023
3758eb1
Update README.md
MaxHalford Nov 9, 2023
48ca13e
make cm inherit from multi-class metric
MaxHalford Nov 18, 2023
7b2f1b8
Rename sample_weight to w (code quality) (#1457)
mariliatd Nov 23, 2023
704ca0d
wip
MaxHalford Dec 2, 2023
4dff1df
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Dec 2, 2023
715942d
ruff
MaxHalford Dec 2, 2023
5615dd6
move stuff around
MaxHalford Dec 2, 2023
740ce0d
Update pypi.yml
MaxHalford Dec 2, 2023
0207424
Update pypi.yml
MaxHalford Dec 2, 2023
8f7ed9f
Update pypi.yml
MaxHalford Dec 2, 2023
1bed0ad
Update pypi.yml
MaxHalford Dec 2, 2023
c3825e5
Update pypi.yml
MaxHalford Dec 2, 2023
48c9710
Update pypi.yml
MaxHalford Dec 2, 2023
977a5b4
Update pypi.yml
MaxHalford Dec 2, 2023
b4f0b39
Update pypi.yml
MaxHalford Dec 3, 2023
f8b5cf9
Update pypi.yml
MaxHalford Dec 3, 2023
9bed64d
Update pypi.yml
MaxHalford Dec 3, 2023
25a8973
Update pypi.yml
MaxHalford Dec 3, 2023
f222574
Update pypi.yml
MaxHalford Dec 3, 2023
673a3b7
wip
MaxHalford Dec 3, 2023
60c2b29
Update pypi.yml
MaxHalford Dec 3, 2023
d6c5c41
No more return self (#1461)
mariliatd Dec 3, 2023
936a5d7
Update pypi.yml
MaxHalford Dec 3, 2023
3c9c1f5
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Dec 3, 2023
4e561f8
remove return self from update and revert
MaxHalford Dec 4, 2023
dd84bac
Update emp.py
MaxHalford Dec 4, 2023
07fdd36
bump
MaxHalford Dec 4, 2023
8b72d5a
Update base.py
MaxHalford Dec 4, 2023
1d104da
Update no_drift.py
MaxHalford Dec 4, 2023
876b7c3
Update no_drift.py
MaxHalford Dec 4, 2023
78ca5d5
fix examples
MaxHalford Dec 4, 2023
9d4de29
Update __version__.py
MaxHalford Dec 4, 2023
b19b9ca
fix adwin
MaxHalford Dec 4, 2023
b93a169
Remove math.sqrt from the distance calculating function within DBSTRE…
hoanganhngo610 Dec 5, 2023
4660aea
Bump jupyter-server from 2.11.1 to 2.11.2 (#1469)
dependabot[bot] Dec 5, 2023
3ea1918
Modify the distance calculating function in Silhouette coefficient (r…
hoanganhngo610 Dec 6, 2023
930fe02
Modify the distance calculating function in DenStream (relating to an…
hoanganhngo610 Dec 6, 2023
e4ebcd0
Change the inserted value of the shared density when KeyError occurs …
hoanganhngo610 Dec 6, 2023
c4a8676
Removing entries within shared density and associated timestamp when …
hoanganhngo610 Dec 8, 2023
80757e3
Modify the first test within test_dbstream.py file
hoanganhngo610 Dec 12, 2023
0a5a1c0
Update the second test within test_dbstream.py file
hoanganhngo610 Dec 12, 2023
2fd8bc4
Add test for DBSTREAM with synthetic data
hoanganhngo610 Dec 14, 2023
3b59cde
Update test_density_graph_with_removed_microcluster function in DBSTR…
hoanganhngo610 Dec 14, 2023
ad436f4
Modify test_density_graph_with_three_micro_clusters in DBSTREAM test …
hoanganhngo610 Dec 14, 2023
7233a75
Update test_dbstream.py file after pre commit checks.
hoanganhngo610 Dec 14, 2023
e16ce2b
Add license to riverml.xyz (#1480)
mbispham Jan 1, 2024
790b3e6
Update airline_passengers.py
MaxHalford Jan 20, 2024
451a815
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Jan 20, 2024
1c98e9e
Add new drift detectors (#1474)
gabrieljaguiar Feb 1, 2024
af6d7c5
Add stream.iter_polars #1503 (#1504)
niccolopetti Feb 14, 2024
87941ba
Fix missing attribute '_from_state' in 'EmpiricalCovariance' (#1471)
MarekWadinger Feb 24, 2024
1e6ded0
Fix build from source (sdist) (#1506)
AdilZouitine Feb 25, 2024
f603161
Fix issue #1507 (SWINN streamline) (#1508)
smastelini Mar 1, 2024
0fe1c1e
add a trained_on_dist to imblearn/random.py #1511 (#1513)
niccolopetti Mar 18, 2024
a36c5dd
Adding PredictiveAnomalyDetection to river/anomaly (#1458)
sebiwtt Mar 18, 2024
2491b09
Add PAD to unreleased.md file.
hoanganhngo610 Mar 18, 2024
26675f7
Update __version__.py
MaxHalford Mar 28, 2024
8331328
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Mar 28, 2024
26aa4d7
prepare release
MaxHalford Mar 28, 2024
aac6318
Update pyproject.toml
MaxHalford Mar 28, 2024
c7fbedf
pin version (#1525)
FBruzzesi Apr 15, 2024
4a93461
docs: update Pipelines recipe (#1528)
FBruzzesi Apr 22, 2024
010ac73
try auto
MaxHalford Apr 22, 2024
1addafe
Merge branch 'main' of https://github.com/online-ml/river
MaxHalford Apr 22, 2024
c9fb646
Update pypi.yml
MaxHalford Apr 22, 2024
b80477f
Update pypi.yml
MaxHalford Apr 22, 2024
46559fa
Update pypi.yml
MaxHalford Apr 23, 2024
eec30f1
Bump pillow from 10.1.0 to 10.3.0 (#1520)
dependabot[bot] Apr 24, 2024
81401ce
Update pyproject.toml (#1533)
PabloRuizCuevas Apr 25, 2024
79ea8c3
fix failing test (wrt #1253)
May 3, 2024
c5f0023
Adding ODAC (#1537)
smastelini May 3, 2024
5c9156e
Update docs for typos and wording (#1544)
stereosky May 14, 2024
6dfba3b
ODAC: quality of life improvements (sent by Gonçalo)
May 15, 2024
e661a96
Rename release 0.21.1 release notes to 0.21.1.md (#1546)
gbolmier May 20, 2024
6995f15
Make polars an optional dependency (#1545)
gbolmier May 20, 2024
c8ea67f
Fix #1560 (ARF cornercase)
smastelini Jun 28, 2024
5677a50
Upgrade the pyo3 crate (#1564)
e10e3 Jul 4, 2024
acaf678
Fix mypy errors (#1562)
e10e3 Jul 4, 2024
112bb18
Release 0.21.2
gbolmier Jul 8, 2024
20ef984
Downgrade release-docs action Py version to 3.11
gbolmier Jul 8, 2024
969a5c0
Revert "Downgrade release-docs action Py version to 3.11"
gbolmier Jul 8, 2024
c012437
Update install-env and release-docs workflows (#1569)
gbolmier Jul 9, 2024
51bb834
Update PyPI workflow (#1571)
gbolmier Jul 9, 2024
038ad5d
Fixed `AttributeError` in metrics/roc_auc.py. (#1568)
RavSS Jul 19, 2024
9d05b77
Replace Gym with Gymnasium (#1580)
e10e3 Jul 22, 2024
e181e38
Clear out MyPy's warnings (#1581)
e10e3 Jul 23, 2024
7373c5c
Bump urllib3 from 2.2.1 to 2.2.2 (#1557)
dependabot[bot] Jul 24, 2024
f18594c
Bump setuptools from 69.5.1 to 70.0.0 (#1575)
dependabot[bot] Jul 24, 2024
0ce2bec
Use units based on powers of 2 (#1583)
e10e3 Jul 25, 2024
4499496
[docs] fix memory units in the tree guideline
Jul 25, 2024
41b807a
Bump zipp from 3.18.2 to 3.19.1 (#1572)
dependabot[bot] Jul 26, 2024
bb77e55
Bump certifi from 2024.2.2 to 2024.7.4 (#1567)
dependabot[bot] Jul 26, 2024
192d1ca
Limit tree growth to the system recursion limit (#1585)
e10e3 Jul 29, 2024
df257b8
[docs] remove unavailable tree algorithm and fix tree depth behavior …
Jul 29, 2024
d606d7b
Updates in ODAC code (#1584)
bezumbzalinho Aug 1, 2024
b5e6fea
Remove mention of former compat modules (#1588)
e10e3 Aug 16, 2024
b282ea5
Remove script download from polyfill.io (#1590)
e10e3 Aug 19, 2024
71a127f
Remove the class CentralMoments (#1593)
e10e3 Aug 22, 2024
bd0e31b
Add type stubs for Cython files (#1594)
e10e3 Aug 22, 2024
7de4751
Bump dev tools (#1599)
MaxHalford Aug 27, 2024
fc9bcc0
Add Hack for stats.IQR get method for avoiding panicking (#1603)
Daveismus Aug 30, 2024
c2c0e4f
Bump notebook from 7.2.0 to 7.2.2 (#1604)
dependabot[bot] Aug 31, 2024
f982476
Bump jupyterlab from 4.2.0 to 4.2.5 (#1605)
dependabot[bot] Aug 31, 2024
25f9f89
Type hints for 'return self' (#1601)
e10e3 Aug 31, 2024
3f14064
Fixup typo (#1606)
mbispham Aug 31, 2024
7e3eb19
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …
dependabot[bot] Sep 4, 2024
e3b2163
Adding Local Adaptive Streaming Tree (#1610)
danielnowakassis Sep 6, 2024
c6dab1b
Bugfix for detecting change points based on MOA (#1613)
denisesato Sep 11, 2024
fdab50b
Update release notes
smastelini Sep 11, 2024
d310abb
Update release notes
smastelini Sep 11, 2024
ba66ee7
New MyPy configuration for per-module type completeness (#1596)
e10e3 Sep 11, 2024
38661c5
# type: ignore[misc]
MaxHalford Sep 11, 2024
e958fd8
Update Py version to 3.12.X in release-docs.yml
gbolmier Oct 3, 2024
ef05f82
removing use of numpy
kchardon Nov 10, 2024
e28ed63
add of Hierarchical Clustering
kchardon Apr 11, 2023
6745a9e
Fixed issues
kchardon Apr 11, 2023
1d34134
Fix issues
kchardon Apr 11, 2023
8a75651
Fixed issues
kchardon Apr 11, 2023
ce2fb68
Fix issues
kchardon Apr 11, 2023
cf8b38a
fixed trailing spaces
kchardon Apr 11, 2023
a410f3e
Fixed black and isort
kchardon Apr 11, 2023
757c0d2
reverting to the version passing the 'build river ubuntu'
kchardon Apr 11, 2023
488fe4b
fixed isort and black
kchardon Apr 11, 2023
4799b8e
Deleted the possibility to use all the data points
kchardon May 23, 2023
05dc84b
correction for ruff hook
kchardon Jun 5, 2023
a95b077
correction for ruff hook
kchardon Jun 5, 2023
1a78c7b
correction for ruff hook
kchardon Jun 5, 2023
8921f8b
Modify Eucliean distance calculation using np.linalg.norm for better …
hoanganhngo610 Sep 11, 2023
35868fa
Refactor elements related to the distance function.
hoanganhngo610 Sep 11, 2023
c85bcc0
Remove data types of attributes
hoanganhngo610 Sep 11, 2023
83c05b5
Refactor inter subtree similarity function.
hoanganhngo610 Sep 11, 2023
2fde0e3
Refactor intra subtree similarity function
hoanganhngo610 Sep 11, 2023
e14d8b5
Refactor leave finding function.
hoanganhngo610 Sep 11, 2023
c09a177
Refactor online top down (OTD) clustering function.
hoanganhngo610 Sep 11, 2023
6b54ebc
Refactor.
hoanganhngo610 Sep 11, 2023
0c66a9d
Cheng function name OTD to otd_clustering.
hoanganhngo610 Sep 11, 2023
1d2ce2f
Remove unnecessary comments.
hoanganhngo610 Sep 11, 2023
ecb69d0
Refactor description of the algorithm within Docstring.
hoanganhngo610 Sep 11, 2023
674c05e
Refactor tests in Docstring.
hoanganhngo610 Sep 11, 2023
4d8bb8e
Refactor merge_nodes function.
hoanganhngo610 Sep 11, 2023
5841e7d
Refactor comments in merge_nodes
hoanganhngo610 Sep 11, 2023
8e6705f
Rename predict_otd.
hoanganhngo610 Sep 11, 2023
03dafa5
Simplify comments.
hoanganhngo610 Sep 11, 2023
ba52086
Modify __str__ printed output by adding "Printed Hierarchical Cluster…
hoanganhngo610 Sep 11, 2023
b8ddad0
Rename predict_otd.
hoanganhngo610 Sep 11, 2023
8fd902b
Split comments and rename printTree to print_tree.
hoanganhngo610 Sep 11, 2023
9bb4427
Modify self.X to self.x_clusters.
hoanganhngo610 Sep 11, 2023
121d94c
Lexical changes.
hoanganhngo610 Sep 11, 2023
93419f8
Remove unnecessary comments.
hoanganhngo610 Sep 11, 2023
29011c9
Refactor Docstring
hoanganhngo610 Sep 12, 2023
793ef29
Refactor comment.
hoanganhngo610 Sep 12, 2023
da438f7
Make find_path() a static method.
hoanganhngo610 Sep 13, 2023
ea57417
Refactor Docstring.
hoanganhngo610 Sep 13, 2023
aaa04c6
Make print_tree static method.
hoanganhngo610 Sep 13, 2023
da92685
Refactor code to account for failing tests.
hoanganhngo610 Sep 13, 2023
ec4fc6d
Refactor distance function used in Hierarchical Clustering class.
hoanganhngo610 Sep 13, 2023
fae5ebe
Delete euclidean_distance function (due to being unnecessary).
hoanganhngo610 Sep 13, 2023
7a736b3
Code refactoring to align with other algorithms available in River.
hoanganhngo610 Sep 13, 2023
3f2b671
Modify Docstring description for dist_func.
hoanganhngo610 Sep 13, 2023
4c8079d
Delete least common ancestor finding function (since this function is…
hoanganhngo610 Sep 14, 2023
34aa9ad
removing use of numpy
kchardon Nov 10, 2024
fcbcdb5
Merge branch 'main' of https://github.com/kchardon/river_project
kchardon Nov 10, 2024
0c745a2
ruff format
kchardon Nov 10, 2024
ce5f9a4
odac issue
kchardon Nov 11, 2024
9662a7f
remove hcluster
kchardon Nov 11, 2024
a4ec3c9
last main commit
kchardon Nov 11, 2024
10cd5e5
hcluster
kchardon Nov 11, 2024
e942ba2
ruff
kchardon Nov 11, 2024
c1deecf
new test
kchardon Nov 11, 2024
0923005
correct test
kchardon Nov 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* @MaxHalford @smastelini
river/facto @gbolmier
river/stats @AdilZouitine
river/cluster @hoanganhngo610 @Dennis1989
53 changes: 53 additions & 0 deletions .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Install env

inputs:
python-version:
description: "Python version to use"
required: true
build-root:
default: "true"
options:
- true
- false

runs:
using: "composite"
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
id: set-up-python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Load cached Poetry installation
uses: actions/cache@v4
with:
path: ~/.local # the path depends on the OS
key: poetry-2 # increment to reset cache

- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached virtual env
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
shell: bash
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-ansi --no-root

- name: Build
shell: bash
if: ${{ inputs.build-root == 'true' }}
run: poetry install --no-interaction --no-ansi
27 changes: 0 additions & 27 deletions .github/actions/retrieve-env/action.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/build-river.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/ci.yml

This file was deleted.

28 changes: 6 additions & 22 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,13 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
- name: Build River
uses: ./.github/actions/install-env
with:
python-version: 3.11

- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show
if: matrix.os == 'ubuntu-latest'

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[dev]"
python-version: "3.12"
build-root: false

- name: Run pre-commit on all files
run: pre-commit run --all-files
run: poetry run pre-commit run --all-files
4 changes: 2 additions & 2 deletions .github/workflows/delete-caches.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Clear all Github Actions caches
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
my-job:
name: Delete all caches
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Clear caches
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/docs.yml → .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: docs
name: dev-docs

on:
workflow_call:
push:
branches:
- main

jobs:
docs:
Expand All @@ -10,25 +12,29 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Retrieve the environment and the River build
uses: ./.github/actions/retrieve-env
- name: Build River
uses: ./.github/actions/install-env
with:
python: "3.11"
python-version: "3.12"
build-root: false

- name: Install Ubuntu dependencies
- name: Install extra Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Install extra Python dependencies
run: |
poetry install --with docs

- name: Build docs
run: |
source ~/.venv/bin/activate
source $VENV
make doc

- name: Deploy docs
if: github.event_name == 'push'
env:
GH_TOKEN: ${{ secrets.GitHubToken }}
run: |
source ~/.venv/bin/activate
source $VENV
git config user.name github-actions
git config user.email [email protected]
git config pull.rebase false
Expand Down
Loading
Loading