Skip to content

Commit 1fa685a

Browse files
authored
[MRG] Add automatic labeler to PR and check release notes updates (#704)
* add leberler * change condition labeler * better labels * add check modified reelase file * update release file * fix action * test realse file unchanged * add relrase file comment * test modify file * remove cuda
1 parent 1761d0b commit 1fa685a

8 files changed

+136
-24
lines changed

.github/labeler.yml

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
2+
Documentation:
3+
- changed-files:
4+
- any-glob-to-any-file: docs/**
5+
6+
Examples:
7+
- changed-files:
8+
- any-glob-to-any-file: examples/**
9+
10+
Tests:
11+
- changed-files:
12+
- any-glob-to-any-file: test/**
13+
14+
CI:
15+
- changed-files:
16+
- any-glob-to-any-file: .github/workflows/**
17+
- any-glob-to-any-file: .circleci/**
18+
19+
ot.bregman:
20+
- changed-files:
21+
- any-glob-to-any-file: ot/bergman/**
22+
23+
ot.gromov:
24+
- changed-files:
25+
- any-glob-to-any-file: ot/gromov/**
26+
27+
ot.unbalanced:
28+
- changed-files:
29+
- any-glob-to-any-file: ot/unbalanced/**
30+
31+
ot.lp:
32+
- changed-files:
33+
- any-glob-to-any-file: ot/lp/**
34+
35+
ot.utils:
36+
- changed-files:
37+
- any-glob-to-any-file: ot/utils.py
38+
39+
ot.backend:
40+
- changed-files:
41+
- any-glob-to-any-file: ot/backend.py
42+
43+
ot.coot:
44+
- changed-files:
45+
- any-glob-to-any-file: ot/coot.py
46+
47+
ot.optim:
48+
- changed-files:
49+
- any-glob-to-any-file: ot/optim.py
50+
51+
ot.plot:
52+
- changed-files:
53+
- any-glob-to-any-file: ot/plot.py
54+
55+
ot.factored:
56+
- changed-files:
57+
- any-glob-to-any-file: ot/factored.py
58+
59+
ot.gaussian:
60+
- changed-files:
61+
- any-glob-to-any-file: ot/gaussian.py
62+
63+
ot.gmm:
64+
- changed-files:
65+
- any-glob-to-any-file: ot/gmm.py
66+
67+
ot.lowrank:
68+
- changed-files:
69+
- any-glob-to-any-file: ot/lowrank.py
70+
71+
ot.solvers:
72+
- changed-files:
73+
- any-glob-to-any-file: ot/solvers.py
74+
75+
ot.partial:
76+
- changed-files:
77+
- any-glob-to-any-file: ot/partial.py
78+
79+
ot.sliced:
80+
- changed-files:
81+
- any-glob-to-any-file: ot/sliced.py
82+
83+
ot.smooth:
84+
- changed-files:
85+
- any-glob-to-any-file: ot/smooth.py
86+
87+
ot.weak:
88+
- changed-files:
89+
- any-glob-to-any-file: ot/weak.py
90+
91+
ot.dr:
92+
- changed-files:
93+
- any-glob-to-any-file: ot/dr.py
94+
95+
ot.gnn:
96+
- changed-files:
97+
- any-glob-to-any-file: ot/gnn/**

.github/workflows/build_tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
pre-commit install --install-hooks
4040
pre-commit run --all-files
4141
42+
4243
linux:
4344

4445
runs-on: ubuntu-latest

.github/workflows/build_tests_cuda.yml

-23
This file was deleted.

.github/workflows/check_release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Check updated RELEASES.md file"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
jobs:
8+
check_release_file:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Verify Changed files
15+
uses: tj-actions/changed-files@v45
16+
id: changed-release-file
17+
with:
18+
files: 'RELEASES.md'
19+
- name: Check if RELEASES.md file is changed
20+
if: steps.changed-release-file.outputs.any_changed == 'false'
21+
run: exit 1

.github/workflows/labeler.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
jobs:
8+
labeler:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/labeler@v5

.yamllint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ignore: |
44
.github/workflows/*.yml
55
.circleci/config.yml
66
codecov.yml
7+
.github/labeler.yml
78
89
rules:
910
line-length: disable

RELEASES.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### New features
66
- Implement CG solvers for partial FGW (PR #687)
77
- Added feature `grad=last_step` for `ot.solvers.solve` (PR #693)
8+
- Automatic PR labeling and release file update check (PR #704)
89

910
#### Closed issues
1011
- Fixed `ot.mapping` solvers which depended on deprecated `cvxpy` `ECOS` solver (PR #692, Issue #668)

ot/coot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def co_optimal_transport(
148148
duals_feature : (n_feature_x, n_feature_y) tuple, float
149149
Pair of dual vectors when solving OT problem w.r.t the feature coupling.
150150
distances : list, float
151-
List of COOT distances.
151+
List of COOT distances along iterations.
152152
153153
References
154154
----------

0 commit comments

Comments
 (0)